Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 7c11241

Browse files
authored
fix: input lip visibility for transparent themes (anomalyco#5544)
1 parent 5cf126d commit 7c11241

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

  • packages/opencode/src/cli/cmd/tui/component/prompt

packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -873,17 +873,24 @@ export function Prompt(props: PromptProps) {
873873
borderColor={highlight()}
874874
customBorderChars={{
875875
...EmptyBorder,
876-
vertical: "╹",
876+
vertical: theme.backgroundElement.a !== 0 ? "╹" : " ",
877877
}}
878878
>
879879
<box
880880
height={1}
881881
border={["bottom"]}
882882
borderColor={theme.backgroundElement}
883-
customBorderChars={{
884-
...EmptyBorder,
885-
horizontal: "▀",
886-
}}
883+
customBorderChars={
884+
theme.backgroundElement.a !== 0
885+
? {
886+
...EmptyBorder,
887+
horizontal: "▀",
888+
}
889+
: {
890+
...EmptyBorder,
891+
horizontal: " ",
892+
}
893+
}
887894
/>
888895
</box>
889896
<box flexDirection="row" justifyContent="space-between">

0 commit comments

Comments
 (0)