From 570b142e44dd91373ab15dca72f01d97d7487077 Mon Sep 17 00:00:00 2001 From: xintaofei Date: Tue, 14 Apr 2026 22:44:27 +0800 Subject: [PATCH] fix(folder): align file workspace tab bar height --- src/components/files/file-workspace-tab-bar.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/files/file-workspace-tab-bar.tsx b/src/components/files/file-workspace-tab-bar.tsx index 73ac1a5..3af9dbb 100644 --- a/src/components/files/file-workspace-tab-bar.tsx +++ b/src/components/files/file-workspace-tab-bar.tsx @@ -103,7 +103,7 @@ export function FileWorkspaceTabBar() { } return ( -
+
setIsHovered(true)} onMouseLeave={() => setIsHovered(false)} className={cn( - "h-10 pt-1.5 px-1.5 flex-1 min-w-0 flex items-stretch gap-1.5", + "h-10 pt-1.5 px-1.5 flex-1 min-w-0 flex items-stretch gap-1.5 border-b border-border", "overflow-x-scroll", isHovered ? [ @@ -205,7 +205,7 @@ export function FileWorkspaceTabBar() { type="button" onClick={() => toggleFileTabPreview(activeFileTabId)} className={cn( - "shrink-0 flex items-center justify-center w-10 hover:bg-primary/8 transition-colors", + "shrink-0 flex items-center justify-center w-10 border-b border-border hover:bg-primary/8 transition-colors", isPreviewActive && "text-primary" )} aria-label={isPreviewActive ? t("editSource") : t("preview")} @@ -224,7 +224,7 @@ export function FileWorkspaceTabBar() { onClick={() => { openPath(`${folder.path}/${activeTab.path}`).catch(() => {}) }} - className="shrink-0 flex items-center justify-center w-10 hover:bg-primary/8 transition-colors" + className="shrink-0 flex items-center justify-center w-10 border-b border-border hover:bg-primary/8 transition-colors" aria-label={t("preview")} title={t("preview")} >