Skip to content

Fix empty popover by giving the device list a min height - #30

Open
jknlsn wants to merge 1 commit into
tobi:mainfrom
jknlsn:fix/popover-min-height
Open

Fix empty popover by giving the device list a min height#30
jknlsn wants to merge 1 commit into
tobi:mainfrom
jknlsn:fix/popover-min-height

Conversation

@jknlsn

@jknlsn jknlsn commented Jul 28, 2026

Copy link
Copy Markdown

Fixes the menu bar popover rendering completely empty — no devices, no sections, just the mode toggle and volume slider.

MenuBarExtra(.window) sizes its window to the content, and the inner ScrollView only had .frame(maxHeight: 420) with no minimum. SwiftUI gave it ~0 ideal height, so the window collapsed to ~117px and clipped every device section. Adding a minHeight reserves the space and the list shows up.

Tested on macOS 26 with a CalDigit dock, AirPods and the built-ins connected: popover now shows all sections and stays within the 440px cap.

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