Skip to content

Commit

Permalink
Update screeen sizing for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
umonkey committed Apr 1, 2024
1 parent b8aef5a commit d7aee60
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion frontend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ lint:
npm run lint

serve:
REACT_APP_API_ROOT=http://localhost:8000 npm run dev
REACT_APP_API_ROOT=http://localhost:8000 npm run dev -- --host

storybook:
npm run storybook -- --no-open
Expand Down
8 changes: 6 additions & 2 deletions frontend/src/App.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#root {
width: 100vw;
height: 100vh;
width: 100%;
height: 100%;
min-height: 100%;
position: absolute;

background-color: #e4f0e2;
color: #222;
line-height: 1.25em;
position: relative;
}
4 changes: 2 additions & 2 deletions frontend/src/components/maps/Map/styles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.map {
width: 100vw;
height: 100vh;
width: 100%;
height: 100%;
}
4 changes: 3 additions & 1 deletion frontend/src/components/pages/HomePage/styles.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.HomePage {
display: flex;
flex-direction: row;
width: 100vw;

width: 100%;
height: 100%;
}

.map {
Expand Down
9 changes: 5 additions & 4 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

height: 100%;
}

a {
Expand All @@ -24,10 +26,9 @@ a:hover {

body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;

width: 100%;
height: 100%;
}

h1 {
Expand Down

0 comments on commit d7aee60

Please sign in to comment.