Skip to content

Commit

Permalink
fix: mobile simulation height (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbulma authored Nov 27, 2023
1 parent 6308184 commit bda7cea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion front/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ body {
margin: auto;
border-radius: 20px;
width: 390px;
height: 844px;
height: 760px;
min-height: 0px;
overflow: hidden;
}
Expand Down
8 changes: 4 additions & 4 deletions front/src/providers/ModalProvider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const PortalContainer = styled(Portal)<{ isopen: Boolean | undefined }>`
width: 100%;
height: 100svh;
@media (min-width: 600px) {
height: 844px;
height: 760px;
}
pointer-events: ${({ isopen }) => (isopen ? "auto" : "none")};
`;
Expand All @@ -33,7 +33,7 @@ const Modal = styled.div<{ $isOpen: Boolean }>`
z-index: 100;
@media (min-width: 600px) {
height: calc(844px * 0.7);
height: calc(760px * 0.7);
}
`;

Expand All @@ -46,7 +46,7 @@ const Overlay = styled.div<{ $isOpen: Boolean }>`
width: 100%;
height: 100svh;
@media (min-width: 600px) {
height: 844px;
height: 760px;
}
visibility: ${({ $isOpen }) => ($isOpen ? "visible" : "hidden")};
transition: opacity 0.3s ease-in-out;
Expand All @@ -62,7 +62,7 @@ const Overlay = styled.div<{ $isOpen: Boolean }>`
width: 100%;
height: 100svh;
@media (min-width: 600px) {
height: 844px;
height: 760px;
}
}
`;
Expand Down

0 comments on commit bda7cea

Please sign in to comment.