[PR #5469] fix(tui): constrain dialog option height to single line #11420

Closed
opened 2026-02-16 18:16:15 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5469

State: closed
Merged: No


Summary

  • Constrain dialog select options to single line height with wrapMode="none" and maxHeight={1}
  • Prevents text from wrapping to multiple lines in dialog menus

Why

  • Locale.truncate already truncates text, but wrapMode="word" was still causing text to wrap to multiple lines
  • This ensures truncation works as intended and keeps all dialog options uniform height
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5469 **State:** closed **Merged:** No --- ## Summary - Constrain dialog select options to single line height with `wrapMode="none"` and `maxHeight={1}` - Prevents text from wrapping to multiple lines in dialog menus ## Why - `Locale.truncate` already truncates text, but `wrapMode="word"` was still causing text to wrap to multiple lines - This ensures truncation works as intended and keeps all dialog options uniform height
yindo added the pull-request label 2026-02-16 18:16:15 -05:00
yindo closed this issue 2026-02-16 18:16:15 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11420