blog slug scroll

This commit is contained in:
2026-06-18 02:57:36 +02:00
parent 95666e20e9
commit d85cc205de
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ export default async function BlogPostPage({ params }: Props) {
const date = typeof parsed.data.date === "string" ? parsed.data.date : post.date;
return (
<main className="mx-auto max-w-2xl px-4 py-12">
<main className="mx-auto h-full max-w-2xl overflow-y-auto px-4 py-12">
<header className="mb-8">
<h1 className="text-3xl font-bold">{title}</h1>
{date && (

View File

@@ -6,7 +6,7 @@ export default async function BlogPage() {
const posts = await servTrpc.blog.list();
return (
<main className="mx-auto max-w-2xl px-4 py-12">
<main className="mx-auto h-full max-w-2xl overflow-y-auto px-4 py-12">
<h1 className="mb-8 text-3xl font-bold">Blog</h1>
{posts.length === 0 ? (
<p className="text-muted-foreground">No posts yet.</p>