Skip to content

Commit

Permalink
fix: use dynamic viewport height for intro section
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjmoran committed Feb 27, 2025
1 parent aa2626a commit 4aef2bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
#intro {
position: relative;
margin: var(--border-margin) var(--border-margin) 0 var(--border-margin);
min-height: calc(100vh - var(--border-margin) * 2 + var(--transition-height));
min-height: calc(100dvh - var(--border-margin) * 2 + var(--transition-height));
border-image: url('$lib/assets/grid-background.svg') 80 fill / 80px round;
&::before {
content: '';
Expand All @@ -189,7 +189,7 @@
@extend %flex-column;
padding: 60px;
position: relative;
min-height: calc(100vh - var(--border-margin));
min-height: calc(100dvh - var(--border-margin));
@media (--phone) {
padding: 40px;
}
Expand Down

0 comments on commit 4aef2bb

Please sign in to comment.