fix: input lip visibility for transparent themes (#5544)

This commit is contained in:
Nalin Singh 2025-12-15 10:40:33 +05:30 committed by GitHub
parent 5cf126d489
commit 7c1124199e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -873,17 +873,24 @@ export function Prompt(props: PromptProps) {
borderColor={highlight()}
customBorderChars={{
...EmptyBorder,
vertical: "╹",
vertical: theme.backgroundElement.a !== 0 ? "╹" : " ",
}}
>
<box
height={1}
border={["bottom"]}
borderColor={theme.backgroundElement}
customBorderChars={{
...EmptyBorder,
horizontal: "▀",
}}
customBorderChars={
theme.backgroundElement.a !== 0
? {
...EmptyBorder,
horizontal: "▀",
}
: {
...EmptyBorder,
horizontal: " ",
}
}
/>
</box>
<box flexDirection="row" justifyContent="space-between">