Skip to content

Commit

Permalink
Merge pull request #2841 from Cuzart/fix/mobile-dvh-and-dashboard-web…
Browse files Browse the repository at this point in the history
…site-header-breaking

fix: mobile dvh and dashboard website header breaking
  • Loading branch information
mikecao authored Aug 5, 2024
2 parents 9722a76 + 4f113bc commit bcc712a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/app/(main)/layout.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
grid-row: 2 / 3;
min-height: 0;
height: calc(100vh - 60px);
height: calc(100dvh - 60px);
overflow-y: auto;
}
9 changes: 6 additions & 3 deletions src/app/(main)/websites/[websiteId]/WebsiteHeader.module.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.header {
display: grid;
grid-template-columns: 1fr max-content;
display: flex;
gap: 10px;
align-items: center;
flex-wrap: wrap;
padding: 20px 0px;
}

.title {
Expand All @@ -12,7 +14,7 @@
font-size: 24px;
font-weight: 700;
overflow: hidden;
height: 100px;
height: 60px;
}

.actions {
Expand All @@ -22,6 +24,7 @@
justify-content: flex-end;
gap: 30px;
min-height: 0;
margin-left: auto;
}

.selected {
Expand Down
1 change: 1 addition & 0 deletions src/app/share/[...shareId]/SharePage.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.container {
flex: 1;
min-height: calc(100vh - 200px);
min-height: calc(100dvh - 200px);
}
1 change: 1 addition & 0 deletions src/components/layout/Page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
margin: 0 auto;
padding: 0 20px;
min-height: calc(100vh - 60px);
min-height: calc(100dvh - 60px);
}

0 comments on commit bcc712a

Please sign in to comment.