File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
src/app-layout/visual-refresh-toolbar Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ interface HorizontalLayoutInput {
1919}
2020
2121export const CONTENT_PADDING = 2 * 24 ; // space-xl
22- const MOBILE_BREAKPOINT = 688 ;
2322
2423export function computeHorizontalLayout ( {
2524 navigationOpen,
@@ -52,8 +51,7 @@ export function computeHorizontalLayout({
5251 const maxSplitPanelSize = Math . max ( resizableSpaceAvailable - totalActiveGlobalDrawersSize - activeDrawerSize , 0 ) ;
5352 resizableSpaceAvailable -= sideSplitPanelSize ;
5453 const maxDrawerSize = resizableSpaceAvailable - totalActiveGlobalDrawersSize ;
55- // let the ai drawer be resized until the "main screen" hits the mobile breakpoint to have consistent UX
56- const maxAiDrawerSize = placement . inlineSize - MOBILE_BREAKPOINT ;
54+ const maxAiDrawerSize = resizableSpaceAvailable - totalActiveGlobalDrawersSize + activeAiDrawerSize ;
5755 const maxGlobalDrawersSizes : Record < string , number > = Object . keys ( activeGlobalDrawersSizes ) . reduce (
5856 ( acc , drawerId ) => {
5957 return {
You can’t perform that action at this time.
0 commit comments