diff --git a/src/renderer/src/components/Landing.tsx b/src/renderer/src/components/Landing.tsx index 4b4d1af0a42..0ae2c22958b 100644 --- a/src/renderer/src/components/Landing.tsx +++ b/src/renderer/src/components/Landing.tsx @@ -24,15 +24,14 @@ export default function Landing(): React.JSX.Element { const canCreateWorktree = repos.length > 0 - const shortcuts = useMemo(() => { - const items: ShortcutItem[] = [] - if (canCreateWorktree) { - items.push({ id: 'create', keys: ['⌘', 'N'], action: 'Create worktree' }) - items.push({ id: 'up', keys: ['⌘', '⇧', '↑'], action: 'Move up worktree' }) - items.push({ id: 'down', keys: ['⌘', '⇧', '↓'], action: 'Move down worktree' }) - } - return items - }, [canCreateWorktree]) + const shortcuts = useMemo( + () => [ + { id: 'create', keys: ['⌘', 'N'], action: 'Create worktree' }, + { id: 'up', keys: ['⌘', '⇧', '↑'], action: 'Move up worktree' }, + { id: 'down', keys: ['⌘', '⇧', '↓'], action: 'Move down worktree' } + ], + [] + ) return (
@@ -61,31 +60,29 @@ export default function Landing(): React.JSX.Element { Add Repo - {canCreateWorktree && ( - - )} +
- {shortcuts.length > 0 && ( -
- {shortcuts.map((shortcut) => ( -
- {shortcut.action} -
- {shortcut.keys.map((key) => ( - - ))} -
+
+ {shortcuts.map((shortcut) => ( +
+ {shortcut.action} +
+ {shortcut.keys.map((key) => ( + + ))}
- ))} -
- )} +
+ ))} +
diff --git a/src/renderer/src/components/TerminalPane.tsx b/src/renderer/src/components/TerminalPane.tsx index b0553768dc0..f07888219f6 100644 --- a/src/renderer/src/components/TerminalPane.tsx +++ b/src/renderer/src/components/TerminalPane.tsx @@ -974,6 +974,14 @@ export default function TerminalPane({ e.preventDefault() e.stopPropagation() + // Collapse expanded pane before switching + if (expandedPaneIdRef.current !== null) { + setExpandedPane(null) + restoreExpandedLayout() + refreshPaneSizes(true) + persistLayoutSnapshot() + } + const activeId = manager.getActivePane()?.id ?? panes[0].id const currentIdx = panes.findIndex((p) => p.id === activeId) if (currentIdx === -1) return diff --git a/src/renderer/src/lib/pane-manager.ts b/src/renderer/src/lib/pane-manager.ts index 558571891d5..8dd84ec37f7 100644 --- a/src/renderer/src/lib/pane-manager.ts +++ b/src/renderer/src/lib/pane-manager.ts @@ -354,6 +354,8 @@ export class PaneManager { cursorStyle: 'bar', fontSize: 14, fontFamily: '"SF Mono", Menlo, monospace', + fontWeight: '300', + fontWeightBold: '500', scrollback: 10000, allowTransparency: false, macOptionIsMeta: true,