Skip to content

Commit 68e1073

Browse files
driskullbenelan
authored andcommitted
fix(shell-panel): handle overflow scrolling (#12056)
**Related Issue:** #12057 ## Summary Fixes regression where content isn't overflowing correctly with the newly added internal `content-container` element. - fix regression overflowing content - add screenshot test
1 parent b6516f8 commit 68e1073

File tree

2 files changed

+326
-7
lines changed

2 files changed

+326
-7
lines changed

packages/calcite-components/src/components/shell-panel/shell-panel.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,7 @@
153153
var(--calcite-shell-border-color, var(--calcite-shell-panel-border-color, var(--calcite-color-border-3)));
154154
}
155155

156-
:host([layout="horizontal"]) .container,
157-
:host([layout="horizontal"]) .content-container {
156+
:host([layout="horizontal"]) .container {
158157
@apply w-full h-auto;
159158
flex-direction: column;
160159
}
@@ -279,15 +278,16 @@
279278
}
280279

281280
.content-container {
282-
@apply pointer-events-none
283-
flex
281+
@apply flex
284282
flex-auto
285283
items-stretch
286284
self-stretch
287285
relative
288-
box-border
289-
bg-transparent
290-
h-full;
286+
box-border;
287+
}
288+
289+
:host([layout="horizontal"]) .content-container {
290+
flex-direction: column;
291291
}
292292

293293
.content {

0 commit comments

Comments
 (0)