Skip to content

Commit

Permalink
Merge pull request #42 from icssc/feat/mobile-view-notch
Browse files Browse the repository at this point in the history
feat: mobile view notch fix
  • Loading branch information
NwinNwin authored Nov 9, 2024
2 parents 1ef3700 + 9f46aa9 commit 53cf82f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/web/src/components/Home/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export default function Home() {
>
<Box
w={"100vw"}
h={"100vh"}
h={"100dvh"}
background={colorMode === "dark" ? "#1A1E22" : ""}
>
<Flex
Expand Down Expand Up @@ -814,4 +814,4 @@ export default function Home() {
</Box>
</DataContext.Provider>
);
}
}
4 changes: 2 additions & 2 deletions packages/web/src/components/Login/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function Login() {
return (
<Stack
width={"100vw"}
minH={"100vh"}
minH={"100dvh"}
direction={{ base: "column", md: "row" }}
>
<Flex p={8} flex={1} align={"center"} justify={"center"}>
Expand Down Expand Up @@ -47,7 +47,7 @@ export default function Login() {
<Flex flex={1}>
<Image
width="100%"
height="100vh"
height="100dvh"
alt={"Login Image"}
objectFit={"cover"}
src={wallpaper}
Expand Down
4 changes: 2 additions & 2 deletions packages/web/src/components/Map/Map.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
}

.map-container {
height: 80vh;
height: 80dvh;
width: 75vw;
border-radius: 30px;
z-index: 0;
Expand All @@ -12,7 +12,7 @@
@media only screen and (max-width: 600px) {
.map-container {
border-radius: 0;
height: 83vh;
height: 83dvh;
width: 100vw;
z-index: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/components/ResultsBar/ResultsBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default function ResultsBar({
<Box
paddingX="5px"
width={{ base: "90vw", md: "21vw" }}
height="80vh"
height="80dvh"
overflowY="scroll"
overflowX="hidden"
ref={resultsBarRef}
Expand Down

0 comments on commit 53cf82f

Please sign in to comment.