Skip to content

Commit 508b531

Browse files
committed
fix: When closing the Q panel, items in the panel header (title, button group), wrap and extend beyond the top and bottom of the toolbar
1 parent e37077d commit 508b531

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

build-tools/utils/custom-css-properties.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const customCssPropertiesList = [
1818
'defaultMaxContentWidth',
1919
'defaultMinContentWidth',
2020
'drawerSize',
21+
'drawerMinSize',
2122
'footerHeight',
2223
'headerGap',
2324
'headerHeight',

src/app-layout/visual-refresh-toolbar/drawer/global-ai-drawer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ export function AppLayoutGlobalAiDrawerImplementation({
124124
blockSize: drawerHeight,
125125
insetBlockStart: `${placement.insetBlockStart}px`,
126126
...(!isMobile && {
127+
[customCssProps.drawerMinSize]: `${size}px`,
127128
[customCssProps.drawerSize]: `${['entering', 'entered'].includes(drawerTransitionState) ? size : 0}px`,
128129
}),
129130
}}

src/app-layout/visual-refresh-toolbar/drawer/styles.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,7 @@ $drawer-resize-handle-size: awsui.$space-m;
275275
}
276276

277277
> .drawer-content-container {
278-
// 200px as a min size ensures the content does not wrap on exiting animation
279-
min-inline-size: max(calc(var(#{custom-props.$drawerSize}) - #{awsui.$space-xs}), 200px);
278+
min-inline-size: calc(var(#{custom-props.$drawerMinSize}) - #{awsui.$space-xs});
280279
grid-column: 1 / span 1;
281280
background-color: awsui.$color-background-layout-panel-content;
282281

0 commit comments

Comments
 (0)