Context menu: long labels wrap and spill over the next row (card does not grow to max-content) #367

Open
opened 2026-11-12 23:02:31 +00:00 by charles · 0 comments
Owner

widgets::context_menu keeps the card at its 13 rem minimum (WIDTH = 208.0) and lets long labels wrap, but every row is a fixed 32 px (ITEM_HEIGHT). A label that does not fit on one line therefore wraps onto a second line that spills over the next row.

The original sizes the card to its widest row, up to 21.5 rem (ContextMenu.module.css:24-26: min-width: 13rem; max-width: 21.5rem; width: max-content), so these labels stay on one line.

Steps to reproduce: on branch textchat-53-ui-audio-sources-menu (commit 7826bf8), look at fixtures/golden/stream_menu_audio_sources.png or control_bar_sharing.png. The stream settings menu row "Audio sources: Entire system" wraps, and its second line ("system") overlaps "Audio settings". The mode description "Sharp text at 720p, up to 30 FPS" in the same menu is also cut off (it is a custom row with Wrapping::None).

Expected: the card grows to its widest row, between 13 rem and 21.5 rem, and rows keep one line, as the original's do.

Found while doing Text chat 53 (#343). It is not fixed there because it changes every context menu and their goldens.

`widgets::context_menu` keeps the card at its 13 rem minimum (`WIDTH = 208.0`) and lets long labels wrap, but every row is a fixed 32 px (`ITEM_HEIGHT`). A label that does not fit on one line therefore wraps onto a second line that spills over the next row. The original sizes the card to its widest row, up to 21.5 rem (`ContextMenu.module.css:24-26`: `min-width: 13rem; max-width: 21.5rem; width: max-content`), so these labels stay on one line. Steps to reproduce: on branch `textchat-53-ui-audio-sources-menu` (commit 7826bf8), look at `fixtures/golden/stream_menu_audio_sources.png` or `control_bar_sharing.png`. The stream settings menu row "Audio sources: Entire system" wraps, and its second line ("system") overlaps "Audio settings". The mode description "Sharp text at 720p, up to 30 FPS" in the same menu is also cut off (it is a custom row with `Wrapping::None`). Expected: the card grows to its widest row, between 13 rem and 21.5 rem, and rows keep one line, as the original's do. Found while doing Text chat 53 (#343). It is not fixed there because it changes every context menu and their goldens.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#367
No description provided.