Skip to content

Commit

Permalink
fix: container would overflow in x direction; stepper as own row
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast committed Aug 16, 2023
1 parent ce5da72 commit 02821cc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import { respondAbove } from 'shared/styles/mediaQueries';
import styled from 'styled-components';

export const $PageHeader = styled.div`
display: flex;
display: block;
justify-content: space-between;
align-items: start;
margin-bottom: ${(props) => props.theme.spacing.s};
margin-top: ${(props) => props.theme.spacing.m};
& > div {
flex: 1 0 50%;
}
flex: 1 0 100%;
${respondAbove('md')`
display: flex;
`};
`;

export const $HeaderItem = styled.div``;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,12 @@ const PageContent: React.FC = () => {
}

return (
<Container data-testid={`step-${currentStep}`}>
<Container
data-testid={`step-${currentStep}`}
css={{
'grid-template-columns': 'repeat(auto-fit, minmax(180px, 1fr))',
}}
>
<$PageHeader>
<$HeaderItem>
<$PageHeading>
Expand Down

0 comments on commit 02821cc

Please sign in to comment.