File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed
packages/component-library/.storybook Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,9 @@ export const decorators: Decorator[] = [
76
76
"data-background" : globals . background ,
77
77
} ) }
78
78
>
79
- < Story />
79
+ < div className = { styles . storyWrapper } >
80
+ < Story />
81
+ </ div >
80
82
</ BodyProviders >
81
83
) }
82
84
</ RootProviders >
Original file line number Diff line number Diff line change 7
7
8
8
.contents {
9
9
height : 100vh ;
10
- width : 100 vw ;
10
+ min- width : 100 vh ;
11
11
color : theme .color (" foreground" );
12
12
background : theme .color (" background" , " primary" );
13
13
display : grid ;
19
19
}
20
20
21
21
& [data-layout = " padded" ] {
22
- padding : theme .spacing (10 );
23
22
display : block ;
24
23
place-content : unset ;
25
24
}
29
28
place-content : unset ;
30
29
}
31
30
}
31
+
32
+ .storyWrapper {
33
+ padding : theme .spacing (4 );
34
+ width : 100% ;
35
+ max-width : min (100% , 1280px ); // xl breakpoint
36
+ box-sizing : border-box ;
37
+
38
+ [data-layout = " padded" ] & {
39
+ padding : theme .spacing (10 );
40
+ }
41
+
42
+ [data-layout = " fullscreen" ] & {
43
+ padding : 0 ;
44
+ max-width : none ;
45
+ }
46
+ }
You can’t perform that action at this time.
0 commit comments