From 69835c7b4f9f895bcae07307b558871d21928427 Mon Sep 17 00:00:00 2001 From: ymac <707337118@qq.com> Date: Mon, 19 Oct 2026 22:05:58 +0800 Subject: [PATCH] fix(files): align the native search header with the session tab rule The right Sidebar's pane body starts directly under the host's 38px tab strip. The file tree's search header still used the workbench metrics (6px padding, 1px l1 border): its bottom rule landed at y=79 while the session tab bar's rule sits at y=76 on DSH 0.2.2-rc.5, so the two lines met in a 3px step with different weights and shades. Match the header DSH's own ui-sidebar-files pane uses: a 38px border-box header with a .5px border-l3 hairline. The rule now joins the session tab bar's line at the split; the bottom workbench keeps its roomier header. --- src/client/sidebar.module.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/client/sidebar.module.css b/src/client/sidebar.module.css index ae86761e..7d90b0f1 100644 --- a/src/client/sidebar.module.css +++ b/src/client/sidebar.module.css @@ -1456,6 +1456,20 @@ body[data-dsh-sidebar-dragging] .bottomPanel { border-bottom: 1px solid var(--dsw-alias-border-l1); } +/* Inside DSH's right Sidebar the pane body starts under the host's 38px tab + strip. The host's own files pane (`ui-sidebar-files`' FilesBody) opens with + a 38px header and a .5px `border-l3` hairline; matching both puts this + header's bottom rule on the session tab bar's line at the split. With the + roomier workbench header (6px padding + a 1px l1 border) it sat 3px lower + in a different shade — measured on DSH 0.2.1-rc.1: left rule y=75.0, + this one y=77.3. The bottom workbench keeps the taller header. */ +.nativeTabHost .editorTreeSearch { + box-sizing: border-box; + height: 38px; + padding: 0 8px; + border-bottom: 0.5px solid var(--dsw-alias-border-l3); +} + .editorSearchInput { flex: 1; min-width: 0;