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

thinking-toggle-wip
Nalin Singh 2025-12-14 23:18:02 +05:30 committed by Aiden Cline
parent 5b7581ebbe
commit 2816e84f0a
1 changed files with 5 additions and 11 deletions

View File

@ -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>