File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/client/components/ChatV2 Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -289,6 +289,7 @@ export const ChatV2 = () => {
289
289
const showRagSelector = ( ragIndices ?. length ?? 0 ) > 0
290
290
const rightMenuOpen = ! ! activeToolResult
291
291
const rightMenuWidth = rightMenuOpen ? '300px' : '0px'
292
+ const leftMenuWidth = ! isEmbeddedMode ? { md : '300px' , lg : '400px' } : { md : '0px' , lg : '0px' }
292
293
293
294
// Handle layout shift when right menu opens (tool result becomes visible)
294
295
const prevScrollYProportional = useRef ( 0 )
@@ -415,10 +416,8 @@ export const ChatV2 = () => {
415
416
position : 'relative' ,
416
417
flexDirection : 'column' ,
417
418
overflowY : 'visible' ,
418
- // Padding for navbar
419
- marginTop : ! isEmbeddedMode ? '4rem' : '0' ,
420
419
// Padding for left menu
421
- marginLeft : { md : '300px' , lg : '400px' } ,
420
+ marginLeft : leftMenuWidth ,
422
421
} }
423
422
>
424
423
< Box
@@ -431,8 +430,8 @@ export const ChatV2 = () => {
431
430
paddingTop : '1rem' ,
432
431
width : {
433
432
sm : '100vw' ,
434
- md : `calc(100vw - 300px - ${ rightMenuWidth } )` ,
435
- lg : `calc(100vw - 400px - ${ rightMenuWidth } )` ,
433
+ md : `calc(100vw - ${ leftMenuWidth . md } - ${ rightMenuWidth } )` ,
434
+ lg : `calc(100vw - ${ leftMenuWidth . lg } - ${ rightMenuWidth } )` ,
436
435
} ,
437
436
} }
438
437
ref = { scrollRef }
You can’t perform that action at this time.
0 commit comments