Skip to content

fix: toolbar items missing from overflow menu when window is narrow#126

Merged
datlechin merged 1 commit intomainfrom
fix/toolbar-overflow-menu
Mar 1, 2026
Merged

fix: toolbar items missing from overflow menu when window is narrow#126
datlechin merged 1 commit intomainfrom
fix/toolbar-overflow-menu

Conversation

@datlechin
Copy link
Owner

Summary

  • When the window width is too small, all right-side toolbar buttons collapsed into a >> overflow chevron that only showed 1 item (Filters), with all other buttons missing
  • Root cause: all buttons were packed into a single ToolbarItem with an HStack, so macOS treated them as one atomic unit that couldn't be split in the overflow menu
  • Fix: replace ToolbarItem + HStack with ToolbarItemGroup where each button is a separate child item, and use Label instead of bare Image so overflow menu items show readable text
  • Applied to both left (navigation) and right (primaryAction) toolbar sections

Test plan

  • Verify toolbar looks the same at normal window widths (icons only, proper spacing)
  • Resize window narrower — verify individual buttons appear in the >> overflow menu with text labels
  • Verify all buttons remain functional (filters, history, export, import, inspector, connection switcher, database switcher, refresh, preview)
  • Verify popovers (connection switcher, SQL preview) still work correctly

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@datlechin datlechin merged commit 7bb0256 into main Mar 1, 2026
1 check passed
@datlechin datlechin deleted the fix/toolbar-overflow-menu branch March 1, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant