Skip to content

Commit

Permalink
✨ feat : πŸ›  fix : πŸ’„ style : body min-height λ™μ μœΌλ‘œ μ„€μ •!!
Browse files Browse the repository at this point in the history
  • Loading branch information
seondal committed Apr 17, 2024
1 parent 59ff6d5 commit 8766841
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
display: none;
}

body {
min-height: 100vh;
}

@supports (-webkit-touch-callout: none) {
body {
/* for ios safari 15, safe-area-inset-bottom is 0, so a special fix apply here */
min-height: -webkit-fill-available;
}
}

@media (min-width: 440px) {
html {
font-size: 16px;
Expand Down
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const metadata: Metadata = {
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="ko">
<body className="flex min-h-screen w-screen touch-none justify-center bg-slate-100 py-px">
<body className="flex w-screen touch-none justify-center bg-slate-100">
<div className="w-full max-w-440 overflow-scroll bg-white text-primary">
<Suspense>
<Analytics />
Expand Down

0 comments on commit 8766841

Please sign in to comment.