File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff 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 ) }
You can’t perform that action at this time.
0 commit comments