@@ -260,6 +260,7 @@ export const ChatV2 = () => {
260
260
flexDirection : 'row' ,
261
261
height : '100%' ,
262
262
minWidth : 1400 ,
263
+ overflowX : 'clip' ,
263
264
} }
264
265
>
265
266
{ /* Chat selection column -------------------------------------------------------------------------------------------*/ }
@@ -370,29 +371,34 @@ export const ChatV2 = () => {
370
371
</ Box >
371
372
372
373
{ /* Annotations columns ----------------------------------------------------------------------------------------------------- */ }
373
- < Box sx = { { position : 'relative' , flex : 1 } } >
374
+ < Box
375
+ sx = { {
376
+ position : 'relative' ,
377
+ flex : 1 ,
378
+ transform : course ? 'translateX(0%)' : 'translateX(100%)' ,
379
+ transition : 'transform 200ms ease-in-out 200ms' , // 0.2s duration, no delay
380
+ } }
381
+ >
374
382
< Box sx = { { position : 'sticky' , top : 80 , padding : '4rem 2rem 2rem 0' } } >
375
383
{ /* {ragIndex && ( */ }
376
384
{ course && (
377
385
< Box sx = { { height : '100%' , display : 'flex' , flexDirection : 'column' , gap : '1.5rem' } } >
378
386
< Typography variant = "h6" > Lähteet</ Typography >
379
- < Box sx = { { flex : 1 , borderRadius : '1rem' , backgroundColor : 'rgba(0,0,0,0.0)' , display : 'flex' , flexDirection : 'column' , gap : '1.5rem' } } >
380
- { /* <CitationsBox messages={messages} fileSearchResult={fileSearchResult} /> */ }
381
- < Box sx = { { borderLeft : '4px solid #3f51b5' , paddingLeft : '1rem' , backgroundColor : 'white' , borderRadius : '4px' } } >
382
- < Typography variant = "body2" color = "textSecondary" >
383
- Make sure your ref is attached to a real DOM element (component="div" for MUI Box). Only access .current.clientHeight after the DOM is rendered...
384
- </ Typography >
385
- </ Box >
386
- < Box sx = { { borderLeft : '4px solid #3f51b5' , paddingLeft : '1rem' , backgroundColor : 'white' , borderRadius : '4px' } } >
387
- < Typography variant = "body2" color = "textSecondary" >
388
- Make sure your ref is attached to a real DOM element (component="div" for MUI Box). Only access .current.clientHeight after the DOM is rendered...
389
- </ Typography >
390
- </ Box >
391
- < Box sx = { { borderLeft : '4px solid #3f51b5' , paddingLeft : '1rem' , backgroundColor : 'white' , borderRadius : '4px' } } >
392
- < Typography variant = "body2" color = "textSecondary" >
393
- Make sure your ref is attached to a real DOM element (component="div" for MUI Box). Only access .current.clientHeight after the DOM is rendered...
394
- </ Typography >
395
- </ Box >
387
+ { /* <CitationsBox messages={messages} fileSearchResult={fileSearchResult} /> */ }
388
+ < Box sx = { { borderLeft : '4px solid #3f51b5' , paddingLeft : '1rem' , backgroundColor : 'white' , borderRadius : '4px' } } >
389
+ < Typography variant = "body2" color = "rgba(0,0,0,0.4)" >
390
+ Make sure your ref is attached to a real DOM element (component="div" for MUI Box). Only access .current.clientHeight after the DOM is rendered...
391
+ </ Typography >
392
+ </ Box >
393
+ < Box sx = { { borderLeft : '4px solid #3f51b5' , paddingLeft : '1rem' , backgroundColor : 'white' , borderRadius : '4px' } } >
394
+ < Typography variant = "body2" color = "rgba(0,0,0,0.4)" >
395
+ Make sure your ref is attached to a real DOM element (component="div" for MUI Box). Only access .current.clientHeight after the DOM is rendered...
396
+ </ Typography >
397
+ </ Box >
398
+ < Box sx = { { borderLeft : '4px solid #3f51b5' , paddingLeft : '1rem' , backgroundColor : 'white' , borderRadius : '4px' } } >
399
+ < Typography variant = "body2" color = "rgba(0,0,0,0.4)" >
400
+ Make sure your ref is attached to a real DOM element (component="div" for MUI Box). Only access .current.clientHeight after the DOM is rendered...
401
+ </ Typography >
396
402
</ Box >
397
403
</ Box >
398
404
) }
0 commit comments