Skip to content

Commit fa86a71

Browse files
authored
fix: Allow ai drawer to have bigger max width (#3920)
1 parent bda3880 commit fa86a71

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/app-layout/visual-refresh-toolbar/compute-layout.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ interface HorizontalLayoutInput {
1919
}
2020

2121
export const CONTENT_PADDING = 2 * 24; // space-xl
22-
const MOBILE_BREAKPOINT = 688;
2322

2423
export 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 {

0 commit comments

Comments
 (0)