Parcourir la source

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

Dorian Karter il y a 4 mois
Parent
commit
7d8d360138
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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