Skip to content

Commit 10e2517

Browse files
fix(BreakoutSection): herstel uitslag-effect in stories (#182)
ConstrainedPage had overflow-x: clip op de geconstrained wrapper (960px), waardoor BreakoutSection werd geclipt op exact de containerbreedte — geen zichtbare uitslag. Buitenste div is nu volle breedte met overflow-x: clip (zoals dsn-page-body), binnenste div is geconstrained (zoals dsn-page-body__inner). Co-authored-by: Claude Sonnet 4.6 <[email protected]>
1 parent 2d8dc24 commit 10e2517

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

packages/storybook/src/BreakoutSection.stories.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,22 @@ const meta: Meta<typeof BreakoutSection> = {
3030
export default meta;
3131
type Story = StoryObj<typeof BreakoutSection>;
3232

33-
// Wrapper die een beperkte paginabreedte simuleert zodat het uitslaan zichtbaar is
33+
// Wrapper die een beperkte paginabreedte simuleert zodat het uitslaan zichtbaar is.
34+
// De buitenste div is volle breedte met overflow-x: clip (zoals dsn-page-body).
35+
// De binnenste div is geconstrained (zoals dsn-page-body__inner).
3436
function ConstrainedPage({ children }: { children: React.ReactNode }) {
3537
return (
3638
<div
3739
style={{
38-
maxInlineSize: '960px',
39-
marginInline: 'auto',
4040
overflowX: 'clip',
41-
paddingBlock: 'var(--dsn-space-block-4xl)',
4241
}}
4342
>
4443
<div
4544
style={{
45+
maxInlineSize: '960px',
46+
marginInline: 'auto',
4647
paddingInline: 'var(--dsn-space-inline-3xl)',
48+
paddingBlock: 'var(--dsn-space-block-4xl)',
4749
}}
4850
>
4951
{children}

0 commit comments

Comments
 (0)