From 1e034c70fc6015f8ba3187e59b84a932e9bfc2fb Mon Sep 17 00:00:00 2001 From: "LAPTOP-O016UC3M\\Qi Chen" <16399091+binaricat@users.noreply.github.com> Date: Mon, 22 Dec 2025 14:07:01 +0800 Subject: [PATCH] Reduces tab and control heights for improved UI density Decreases the height and padding of tabs, window controls, and related UI elements to create a more compact and visually dense interface. Enhances usability by allowing more content to fit within the available space, especially on smaller displays. --- components/TopTabs.tsx | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/components/TopTabs.tsx b/components/TopTabs.tsx index 240a926d3..40d8b1179 100644 --- a/components/TopTabs.tsx +++ b/components/TopTabs.tsx @@ -80,14 +80,14 @@ const WindowControls: React.FC = memo(() => {
-
+
{paneCount}
@@ -490,7 +490,7 @@ const TopTabsInner: React.FC = ({ data-tab-id={logView.id} onClick={() => onSelectTab(logView.id)} className={cn( - "relative h-7 pl-3 pr-2 min-w-[140px] max-w-[240px] rounded-md border text-xs font-semibold cursor-pointer flex items-center justify-between gap-2 app-no-drag flex-shrink-0", + "relative h-6 pl-3 pr-2 min-w-[140px] max-w-[240px] rounded-md border text-xs font-semibold cursor-pointer flex items-center justify-between gap-2 app-no-drag flex-shrink-0", "transition-all duration-200 ease-out", isActive ? "bg-accent/20 text-foreground" : "border-border/60 text-muted-foreground hover:border-accent/40 hover:text-foreground" )} @@ -536,9 +536,9 @@ const TopTabsInner: React.FC = ({ onDoubleClick={handleTitleBarDoubleClick} > {/* Always-on drag stripe so the window can be moved even when tabs fill the bar */} -
+
{/* Fixed left tabs: Vaults and SFTP */} @@ -546,7 +546,7 @@ const TopTabsInner: React.FC = ({
onSelectTab('vault')} className={cn( - "h-7 px-3 rounded-md border text-xs font-semibold cursor-pointer flex items-center gap-2 app-no-drag", + "h-6 px-3 rounded-md border text-xs font-semibold cursor-pointer flex items-center gap-2 app-no-drag", isVaultActive ? "bg-accent/20 text-foreground" : "border-border/60 text-muted-foreground hover:border-accent/40 hover:text-foreground" )} style={isVaultActive ? { borderColor: 'hsl(var(--accent))' } : undefined} @@ -556,7 +556,7 @@ const TopTabsInner: React.FC = ({
onSelectTab('sftp')} className={cn( - "h-7 px-3 rounded-md border text-xs font-semibold cursor-pointer flex items-center gap-2 app-no-drag", + "h-6 px-3 rounded-md border text-xs font-semibold cursor-pointer flex items-center gap-2 app-no-drag", isSftpActive ? "bg-accent/20 text-foreground" : "border-border/60 text-muted-foreground hover:border-accent/40 hover:text-foreground" )} style={isSftpActive ? { borderColor: 'hsl(var(--accent))' } : undefined} @@ -598,7 +598,7 @@ const TopTabsInner: React.FC = ({ )} {/* Draggable spacer - fixed width handle at the end */} -
+
{/* Right fade mask */} @@ -623,7 +623,7 @@ const TopTabsInner: React.FC = ({