diff options
| author | Dax Raad <[email protected]> | 2025-12-15 22:57:48 -0500 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-12-15 22:57:52 -0500 |
| commit | e2fbd098d2a8bf4a468fd1884fc9b90519337983 (patch) | |
| tree | c8d31166ed12d49e2ebb604824c4ce0aa075e99e /packages | |
| parent | ef78fd8bae991cc7d816dba8e2f37916cc6dd441 (diff) | |
| download | opencode-e2fbd098d2a8bf4a468fd1884fc9b90519337983.tar.gz opencode-e2fbd098d2a8bf4a468fd1884fc9b90519337983.zip | |
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
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx b/packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx index 3f49a7c32..8e9c17f70 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> |
