summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorNalin Singh <[email protected]>2025-12-14 23:18:02 +0530
committerGitHub <[email protected]>2025-12-14 11:48:02 -0600
commit48ec68730f5e741f7ddcea35e0b588f223b042e5 (patch)
tree50cbbb21f14fb4f0d0b7d60d749be31908949507 /packages
parent70e4efe4294e4bb1bc6955354ce8e971b1e1483b (diff)
downloadopencode-48ec68730f5e741f7ddcea35e0b588f223b042e5.tar.gz
opencode-48ec68730f5e741f7ddcea35e0b588f223b042e5.zip
fix: ensure input borders are drawn in transparent themes (#5524)
Diffstat (limited to 'packages')
-rw-r--r--packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx16
1 files changed, 5 insertions, 11 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
index 941b383e6..f1ed71953 100644
--- a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
+++ b/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>