From e2fbd098d2a8bf4a468fd1884fc9b90519337983 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Mon, 15 Dec 2025 22:57:48 -0500 Subject: [PATCH] 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 --- packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx | 3 +-- 1 file changed, 1 insertion(+), 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)} {props.description}