💄 Better article

This commit is contained in:
2024-02-24 18:29:29 +08:00
parent f9fcae6c7c
commit ea50f739b3
9 changed files with 27 additions and 21 deletions

View File

@@ -22,7 +22,7 @@ export default function PostDetailPage({ params }: { params: { id: string } }) {
<CardContent sx={{ paddingX: 5, paddingY: 3 }}>
<Box>
<Typography gutterBottom variant="h5" component="h1">
<Typography gutterBottom variant="h2">
{post.title}
</Typography>
<Typography color="text.secondary" variant="body2">
@@ -30,7 +30,7 @@ export default function PostDetailPage({ params }: { params: { id: string } }) {
</Typography>
</Box>
<Divider sx={{ my: 5 }} />
<Box component="article" sx={{ minWidth: 0 }}>
<Box component="article" className="prose max-w-none" sx={{ minWidth: 0 }}>
<PostContent content={post.content ?? ""} />
</Box>
</CardContent>