From f8e8ee3992e1e1cd1eed8175d0fb3036e0742e61 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Sun, 26 Apr 2026 14:16:59 +0200 Subject: [PATCH] widen project switcher dropdown, fix labels and shortcuts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dropdown width 380 → 480 to prevent RenderFlex overflow on recent project rows. "Close Workspace" → "Close Project". Keyboard shortcuts show ⌘ on macOS instead of Ctrl. Co-Authored-By: Claude Opus 4.6 (1M context) --- .pql/pql-plan.json | 2 +- lib/app.dart | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pql/pql-plan.json b/.pql/pql-plan.json index cc04b9ac..cc20ac3b 100644 --- a/.pql/pql-plan.json +++ b/.pql/pql-plan.json @@ -1,5 +1,5 @@ { - "exported_at": "2026-04-26T12:16:46Z", + "exported_at": "2026-04-26T12:16:59Z", "decisions": [ { "id": "D-1", diff --git a/lib/app.dart b/lib/app.dart index 65603162..bae9dae5 100644 --- a/lib/app.dart +++ b/lib/app.dart @@ -478,7 +478,7 @@ class _ProjectSwitcherDropdownState extends State<_ProjectSwitcherDropdown> { focusNode: _focus, onKeyEvent: _onKey, child: Container( - width: 380, + width: 480, constraints: const BoxConstraints(maxHeight: 420), decoration: BoxDecoration( color: tokens.dropdownBackground, @@ -513,10 +513,10 @@ class _ProjectSwitcherDropdownState extends State<_ProjectSwitcherDropdown> { decoration: BoxDecoration(border: Border(top: BorderSide(color: tokens.dividerColor))), child: Column( children: [ - _ActionRow(label: 'Open Local Project', shortcut: 'Ctrl+O', tokens: tokens, onTap: _openFolder), - _ActionRow(label: 'New Window', shortcut: 'Ctrl+Shift+N', tokens: tokens, onTap: _newWindow), + _ActionRow(label: 'Open Local Project', shortcut: Platform.isMacOS ? '⌘O' : 'Ctrl+O', tokens: tokens, onTap: _openFolder), + _ActionRow(label: 'New Window', shortcut: Platform.isMacOS ? '⌘⇧N' : 'Ctrl+Shift+N', tokens: tokens, onTap: _newWindow), if (widget.kernel.project.isOpen) - _ActionRow(label: 'Close Workspace', shortcut: '', tokens: tokens, onTap: _closeWorkspace), + _ActionRow(label: 'Close Project', shortcut: '', tokens: tokens, onTap: _closeWorkspace), ], ), ),