Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit e2fbd09

Browse files
committed
tui: fix dialog select items taking up 2 lines when truncated
Prevents text wrapping in dialog select options by removing wrapMode, ensuring truncated text stays on single line and maintains proper timestamp visibility
1 parent ef78fd8 commit e2fbd09

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,9 @@ function Option(props: {
307307
fg={props.active ? fg : props.current ? theme.primary : theme.text}
308308
attributes={props.active ? TextAttributes.BOLD : undefined}
309309
overflow="hidden"
310-
wrapMode="word"
311310
paddingLeft={3}
312311
>
313-
{Locale.truncate(props.title, 62)}
312+
{Locale.truncate(props.title, 61)}
314313
<Show when={props.description}>
315314
<span style={{ fg: props.active ? fg : theme.textMuted }}> {props.description}</span>
316315
</Show>

0 commit comments

Comments
 (0)