Browse Source

fix: minor ui bug for transparent backgrounds (#4886)

Dorian Karter 4 months ago
parent
commit
7d8d360138
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx

+ 2 - 1
packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx

@@ -809,7 +809,8 @@ export function Prompt(props: PromptProps) {
           borderColor={highlight()}
           customBorderChars={{
             ...EmptyBorder,
-            vertical: "╹",
+            // when the background is transparent, don't draw the vertical line
+            vertical: theme.background.a != 0 ? "╹" : " ",
           }}
         >
           <box