Skip to content

Commit 1ef50ec

Browse files
committed
made scroll-to-bottom indicator more clear
1 parent 6956084 commit 1ef50ec

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

cli/src/chat.tsx

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ export const Chat = ({
250250
setInputValue,
251251
})
252252

253+
const [scrollIndicatorHovered, setScrollIndicatorHovered] = useState(false)
254+
253255
const {
254256
slashContext,
255257
mentionContext,
@@ -634,9 +636,20 @@ export const Chat = ({
634636
{/* Center section - scroll indicator (always centered) */}
635637
<box style={{ flexShrink: 0 }}>
636638
{!isAtBottom && (
637-
<text onMouseDown={() => scrollToLatest()}>
638-
<span fg={theme.info} attributes={TextAttributes.BOLD}>
639-
639+
<text
640+
onMouseDown={() => scrollToLatest()}
641+
onMouseOver={() => setScrollIndicatorHovered(true)}
642+
onMouseOut={() => setScrollIndicatorHovered(false)}
643+
>
644+
<span
645+
fg={theme.info}
646+
attributes={
647+
scrollIndicatorHovered
648+
? TextAttributes.BOLD
649+
: TextAttributes.DIM
650+
}
651+
>
652+
{scrollIndicatorHovered ? '↓ Scroll to bottom ↓' : '↓'}
640653
</span>
641654
</text>
642655
)}

0 commit comments

Comments
 (0)