Skip to content

Commit 2d77987

Browse files
committed
Pad welcome example grid so card shadows aren't clipped by scroll container
1 parent d5a0bfb commit 2d77987

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/lib/components/WelcomeModal.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,10 @@
285285
overflow-y: auto;
286286
min-height: 0;
287287
flex: 1;
288-
margin-right: -40px;
289-
padding-right: 8px;
288+
/* Padding so card shadows aren't clipped by overflow; matching negative
289+
margins keep the layout box the same size. */
290+
padding: 12px;
291+
margin: -12px -52px 0 -12px;
290292
}
291293
292294
.example-card {

0 commit comments

Comments
 (0)