The open source coding agent.
TypeScript
tui: fix dialog select items taking up 2 lines when truncated
Dax Raade2fbd098d2a8
diff --git a/packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx b/packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsxindex 3f49a7c3219..8e9c17f708d 100644--- a/packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx+++ b/packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx@@ -307,10 +307,9 @@ function Option(props: {fg={props.active ? fg : props.current ? theme.primary : theme.text}attributes={props.active ? TextAttributes.BOLD : undefined}overflow="hidden"- wrapMode="word"paddingLeft={3}>- {Locale.truncate(props.title, 62)}+ {Locale.truncate(props.title, 61)}<Show when={props.description}><span style={{ fg: props.active ? fg : theme.textMuted }}> {props.description}</span></Show>