Skip to content

Commit 62daa74

Browse files
committed
Fix content placing issue with mostly empty pages
1 parent 09e6f64 commit 62daa74

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/layouts/Layout.astro

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,14 @@ const isAbout = pageTitle === 'About';
5858
)
5959
}
6060
</head>
61-
<body class='flex min-h-screen flex-col pt-16 bg-white dark:bg-dark-bg'>
61+
<body class='min-h-screen flex flex-col pt-16 bg-white dark:bg-dark-bg'>
6262
<Header pageTitle={pageTitle} />
63-
<main class='md:mx-auto mx-4 my-12 max-w-3xl grow'>
64-
<Prose>
65-
<slot />
66-
</Prose>
63+
<main class='flex-1 my-12'>
64+
<div class='max-w-3xl mx-auto px-4 md:px-0'>
65+
<Prose>
66+
<slot />
67+
</Prose>
68+
</div>
6769
</main>
6870
<Footer />
6971
</body>

0 commit comments

Comments
 (0)