File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
packages/jupyter-chat/src/components Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -625,7 +625,10 @@ export function Navigation(props: NavigationProps): JSX.Element {
625
625
// in viewport.
626
626
useEffect ( ( ) => {
627
627
const viewportChanged = ( model : IChatModel , viewport : number [ ] ) => {
628
- setLastInViewport ( viewport . includes ( model . messages . length - 1 ) ) ;
628
+ setLastInViewport (
629
+ model . messages . length === 0 ||
630
+ viewport . includes ( model . messages . length - 1 )
631
+ ) ;
629
632
} ;
630
633
631
634
model . viewportChanged ?. connect ( viewportChanged ) ;
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export function ScrollContainer(props: ScrollContainerProps): JSX.Element {
43
43
...props . sx
44
44
} }
45
45
>
46
- < Box sx = { { minHeight : '100.01%' } } > { props . children } </ Box >
46
+ < Box > { props . children } </ Box >
47
47
< Box sx = { { overflowAnchor : 'auto' , height : '1px' } } />
48
48
</ Box >
49
49
) ;
You can’t perform that action at this time.
0 commit comments