Skip to content

Commit 34bacda

Browse files
georgylobkoat-susie
authored andcommitted
chore: Make the AI drawer content area take the whole height (#3869)
1 parent 42b30e3 commit 34bacda

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export function AppLayoutGlobalAiDrawerImplementation({
221221
</div>
222222
)}
223223
</header>
224-
{activeAiDrawer?.content}
224+
<div className={styles['drawer-content-content']}>{activeAiDrawer?.content}</div>
225225
</div>
226226
</div>
227227
</aside>

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
$global-drawer-gap-size: 8px;
2424
$global-drawer-expanded-mode-motion: #{awsui.$motion-duration-refresh-only-slow} #{awsui.$motion-easing-refresh-only-a};
2525
$drawer-resize-handle-size: awsui.$space-m;
26+
$ai-drawer-heider-height: 41px;
2627

2728
.drawer {
2829
position: sticky;
@@ -288,8 +289,10 @@ $drawer-resize-handle-size: awsui.$space-m;
288289
}
289290

290291
> .drawer-content {
292+
grid-row: 1 / span 4;
293+
291294
> .drawer-content-header {
292-
block-size: 41px;
295+
block-size: $ai-drawer-heider-height;
293296
position: sticky;
294297
z-index: 1000;
295298
display: flex;
@@ -384,6 +387,12 @@ $drawer-resize-handle-size: awsui.$space-m;
384387
}
385388
}
386389
}
390+
391+
> .drawer-content-content {
392+
display: flex;
393+
flex-direction: column;
394+
block-size: calc(100% - #{$ai-drawer-heider-height});
395+
}
387396
}
388397
}
389398

0 commit comments

Comments
 (0)