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 {
625625 // in viewport.
626626 useEffect ( ( ) => {
627627 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+ ) ;
629632 } ;
630633
631634 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 {
4343 ...props . sx
4444 } }
4545 >
46- < Box sx = { { minHeight : '100.01%' } } > { props . children } </ Box >
46+ < Box > { props . children } </ Box >
4747 < Box sx = { { overflowAnchor : 'auto' , height : '1px' } } />
4848 </ Box >
4949 ) ;
You can’t perform that action at this time.
0 commit comments