mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-16 01:03:23 +00:00
fix(tui): highlight queued prompts on hover (#42219)
This commit is contained in:
parent
33a1bd2e90
commit
c253d4d311
1 changed files with 4 additions and 1 deletions
|
|
@ -2089,6 +2089,7 @@ function UserMessage(props: { message: SessionMessageUser }) {
|
|||
|
||||
function QueuedPromptDock(props: { prompts: { id: string; text: string }[]; onOpen: () => void }) {
|
||||
const theme = useTheme("elevated")
|
||||
const [hover, setHover] = createSignal(false)
|
||||
const next = createMemo(() => props.prompts[0]?.text.replaceAll("\n", " "))
|
||||
|
||||
return (
|
||||
|
|
@ -2096,6 +2097,8 @@ function QueuedPromptDock(props: { prompts: { id: string; text: string }[]; onOp
|
|||
border={["left"]}
|
||||
borderColor={theme.border.default}
|
||||
customBorderChars={SplitBorder.customBorderChars}
|
||||
onMouseOver={() => setHover(true)}
|
||||
onMouseOut={() => setHover(false)}
|
||||
onMouseUp={props.onOpen}
|
||||
>
|
||||
<box
|
||||
|
|
@ -2104,7 +2107,7 @@ function QueuedPromptDock(props: { prompts: { id: string; text: string }[]; onOp
|
|||
paddingBottom={1}
|
||||
paddingLeft={2}
|
||||
paddingRight={1}
|
||||
backgroundColor={theme.background.default}
|
||||
backgroundColor={hover() ? theme.raise(theme.background.default) : theme.background.default}
|
||||
flexDirection="row"
|
||||
>
|
||||
<text fg={theme.text.subdued} wrapMode="none" truncate flexGrow={1} flexShrink={1} minWidth={0}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue