diff options
| author | Nalin Singh <[email protected]> | 2025-12-15 10:40:33 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-14 23:10:33 -0600 |
| commit | 7c1124199ecba33750c9b536c907359f40ed91de (patch) | |
| tree | c08e62f4c2d79d6f85cbc41f72c18c199a4e5f6c | |
| parent | 5cf126d4894a9707f51017eb56993c05d24c8319 (diff) | |
| download | opencode-7c1124199ecba33750c9b536c907359f40ed91de.tar.gz opencode-7c1124199ecba33750c9b536c907359f40ed91de.zip | |
fix: input lip visibility for transparent themes (#5544)
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx | 17 |
1 files changed, 12 insertions, 5 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 784c8648e..eefe43d1f 100644 --- a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx @@ -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"> |
