From d89f1ea663b0f496399c38470c96fbace62008dc Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Sun, 15 Mar 2026 13:50:42 +0700 Subject: [PATCH] fix: align mobile workspace header icons with desktop Use same explorer toggle icons (SourceControlPanelIcon/PanelRight) on mobile as desktop, use vertical kebab icon for mobile header menu. --- .../icons/source-control-panel-icon.tsx | 10 +++++---- .../screens/workspace/workspace-screen.tsx | 22 ++++++++++--------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/packages/app/src/components/icons/source-control-panel-icon.tsx b/packages/app/src/components/icons/source-control-panel-icon.tsx index ad573925d..4f0313f0c 100644 --- a/packages/app/src/components/icons/source-control-panel-icon.tsx +++ b/packages/app/src/components/icons/source-control-panel-icon.tsx @@ -3,11 +3,13 @@ import Svg, { Rect, Line } from "react-native-svg"; interface SourceControlPanelIconProps { size?: number; color?: string; + strokeWidth?: number; } export function SourceControlPanelIcon({ size = 16, color = "currentColor", + strokeWidth = 2, }: SourceControlPanelIconProps) { return ( @@ -18,15 +20,15 @@ export function SourceControlPanelIcon({ height={18} rx={2} stroke={color} - strokeWidth={2} + strokeWidth={strokeWidth} strokeLinecap="round" strokeLinejoin="round" /> {/* Plus */} - - + + {/* Minus */} - + ); } diff --git a/packages/app/src/screens/workspace/workspace-screen.tsx b/packages/app/src/screens/workspace/workspace-screen.tsx index 471b68604..19136f72f 100644 --- a/packages/app/src/screens/workspace/workspace-screen.tsx +++ b/packages/app/src/screens/workspace/workspace-screen.tsx @@ -13,9 +13,8 @@ import * as Clipboard from "expo-clipboard"; import { ChevronDown, Copy, - Folder, - GitBranch, Ellipsis, + EllipsisVertical, PanelRight, Plus, SquareTerminal, @@ -1560,12 +1559,15 @@ function WorkspaceScreenContent({ accessibilityRole="button" accessibilityLabel="Workspace actions" > - {({ hovered, open }) => ( - - )} + {({ hovered, open }) => { + const Icon = isMobile ? EllipsisVertical : Ellipsis; + return ( + + ); + }} { const color = isExplorerOpen || hovered ? theme.colors.foreground : theme.colors.foregroundMuted; return isGitCheckout - ? - : ; + ? + : ; }} ) : null}