File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
src/stories/atoms/Container Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ interface ContainerProps {
7
7
children : React . ReactNode
8
8
}
9
9
10
- const StyledContainer = styled ( 'div' ) < ContainerProps > ( {
11
- margin : ' 0 auto' ,
12
- padding : `0 ${ Tokens . sizes . breakpoints . large * 0.75 } ` ,
13
- '@media (min-width: 48rem)' : {
14
- width : ` ${ Tokens . sizes . breakpoints . medium * 0.875 } rem` ,
15
- padding : 0
10
+ const StyledContainer = styled ( 'div' ) < ContainerProps > `
11
+ margin: 0 auto;
12
+ padding: 0 2rem;
13
+
14
+ @media (min- width: ${ Tokens . sizes . breakpoints . medium } rem) {
15
+ max-width: ${ Tokens . sizes . breakpoints . medium } rem;
16
16
}
17
- } )
17
+ `
18
18
19
19
const Container = ( { children, ...props } : ContainerProps ) => {
20
20
return < StyledContainer { ...props } > { children } </ StyledContainer >
You can’t perform that action at this time.
0 commit comments