Преглед изворни кода

fix: ensure input borders are drawn in transparent themes (#5524)

Nalin Singh пре 2 месеци
родитељ
комит
48ec68730f
1 измењених фајлова са 5 додато и 11 уклоњено
  1. 5 11
      packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx

+ 5 - 11
packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx

@@ -869,8 +869,7 @@ export function Prompt(props: PromptProps) {
           borderColor={highlight()}
           customBorderChars={{
             ...EmptyBorder,
-            // when the background is transparent, don't draw the vertical line
-            vertical: theme.background.a != 0 ? "╹" : " ",
+            vertical: "╹",
           }}
         >
           <box
@@ -878,15 +877,10 @@ export function Prompt(props: PromptProps) {
             border={["bottom"]}
             borderColor={theme.backgroundElement}
             customBorderChars={
-              theme.background.a != 0
-                ? {
-                    ...EmptyBorder,
-                    horizontal: "▀",
-                  }
-                : {
-                    ...EmptyBorder,
-                    horizontal: " ",
-                  }
+              {
+                ...EmptyBorder,
+                horizontal: "▀",
+              }
             }
           />
         </box>