Skip to content

Compact dropdown: cap the native menu short (v0.4.7)#13

Merged
peterdsp merged 1 commit into
mainfrom
compact-dropdown-0.4.7
Jul 11, 2026
Merged

Compact dropdown: cap the native menu short (v0.4.7)#13
peterdsp merged 1 commit into
mainfrom
compact-dropdown-0.4.7

Conversation

@peterdsp

Copy link
Copy Markdown
Owner

Why

The dropdown is a native NSMenu, which grows to its content height and only starts scrolling once it exceeds the whole screen - so a long clipboard history filled the display. There's no API to cap a native menu at a fixed sub-screen height with internal scroll, so the lightweight fix is to show fewer entries.

How

  • Hard ceiling MAX_MENU_ITEMS_HARD 100 → 20 - re-clamps any higher saved "Show in dropdown" value down on upgrade, so existing installs shrink with no settings change.
  • Default DEFAULT_DROPDOWN_ITEMS 25 → 10.
  • Presets 10/25/50/100 → 5/10/15/20.

Result: the dropdown is a compact ~half-screen panel instead of a full-height wall of entries. Bumps the workspace to 0.4.7.

The native menu grows to its content height and only scrolls once it
exceeds the whole screen, so a long history filled the display. Cap the
dropdown to a compact panel instead: hard ceiling 100 -> 20 (re-clamps
existing high "Show in dropdown" settings down on upgrade, so the menu
shrinks with no action from the user), default 25 -> 10, presets
10/25/50/100 -> 5/10/15/20.
Copilot AI review requested due to automatic review settings July 11, 2026 23:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@peterdsp
peterdsp merged commit 87ad289 into main Jul 11, 2026
4 checks passed
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.

2 participants