Skip to content

Commit d554643

Browse files
committed
Refactor Container component styles for improved responsiveness and consistency
1 parent 834c8f3 commit d554643

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/stories/atoms/Container/Container.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ interface ContainerProps {
77
children: React.ReactNode
88
}
99

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;
1616
}
17-
})
17+
`
1818

1919
const Container = ({ children, ...props }: ContainerProps) => {
2020
return <StyledContainer {...props}>{children}</StyledContainer>

0 commit comments

Comments
 (0)