fix: input lip visibility for transparent themes (#5544)
This commit is contained in:
parent
64552fe7e1
commit
48eeb4e80d
1 changed files with 12 additions and 5 deletions
|
|
@ -873,17 +873,24 @@ export function Prompt(props: PromptProps) {
|
||||||
borderColor={highlight()}
|
borderColor={highlight()}
|
||||||
customBorderChars={{
|
customBorderChars={{
|
||||||
...EmptyBorder,
|
...EmptyBorder,
|
||||||
vertical: "╹",
|
vertical: theme.backgroundElement.a !== 0 ? "╹" : " ",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<box
|
<box
|
||||||
height={1}
|
height={1}
|
||||||
border={["bottom"]}
|
border={["bottom"]}
|
||||||
borderColor={theme.backgroundElement}
|
borderColor={theme.backgroundElement}
|
||||||
customBorderChars={{
|
customBorderChars={
|
||||||
...EmptyBorder,
|
theme.backgroundElement.a !== 0
|
||||||
horizontal: "▀",
|
? {
|
||||||
}}
|
...EmptyBorder,
|
||||||
|
horizontal: "▀",
|
||||||
|
}
|
||||||
|
: {
|
||||||
|
...EmptyBorder,
|
||||||
|
horizontal: " ",
|
||||||
|
}
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
</box>
|
</box>
|
||||||
<box flexDirection="row" justifyContent="space-between">
|
<box flexDirection="row" justifyContent="space-between">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue