Skip to content

Commit

Permalink
fix(layout): use 100svh for min-height on body instead of 100vh
Browse files Browse the repository at this point in the history
Address a mobile layout issue where using 100vh caused unexpected behavior. Switching to 100svh
resolves this problem by accounting for the mobile browser's UI components. This change ensures a
consistent and improved user experience on smaller screens.

resolves #127
  • Loading branch information
satnaing committed Oct 6, 2023
1 parent d025c91 commit 79d569d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
display: block;
}
body {
@apply flex min-h-screen flex-col bg-skin-fill font-mono text-skin-base
@apply flex min-h-[100svh] flex-col bg-skin-fill font-mono text-skin-base
selection:bg-skin-accent selection:bg-opacity-70 selection:text-skin-inverted;
}
section,
Expand Down

0 comments on commit 79d569d

Please sign in to comment.