Skip to content

Commit

Permalink
fix: use 100dvh instead of 100vh to prevent mobile overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
swiiny committed Mar 24, 2024
1 parent fa3d2e2 commit 9819390
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
flex-direction: column;
justify-content: space-evenly;

height: 100vh;
height: 100dvh;

padding-top: 100px;

Expand Down
2 changes: 1 addition & 1 deletion packages/mui/components/pages/home/HomePage/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const boxStyles = {
justifyContent: 'space-evenly',
paddingX: { xs: '15px', md: '32px', lg: '64px' },
paddingTop: '30px',
height: '100vh'
height: '100dvh'
};

const HomePage: FC<IHomePage> = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const StyledMainContainer = styled.div`
flex-direction: column;
justify-content: space-evenly;
height: 100vh;
height: 100dvh;
padding-top: 32px;
padding-left: 15px;
Expand Down
2 changes: 1 addition & 1 deletion packages/stylex/app/_components/home/HomePage/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const styles = stylex.create({
flexDirection: 'column',
justifyContent: 'space-evenly',
alignItems: 'center',
height: '100svh',
height: '100dvh',
paddingTop: spacing.m,
paddingLeft: {
default: spacing['2xs'],
Expand Down

0 comments on commit 9819390

Please sign in to comment.