feat: short image adaptive size

This commit is contained in:
DIYgod
2023-09-19 14:11:22 +08:00
parent 56805c8a2a
commit 493dff4ddb
4 changed files with 22 additions and 12 deletions
+4 -4
View File
@@ -156,22 +156,22 @@ export default async function SitePagePage({
/>
<article>
{type === "short" ? (
<div className="space-y-3">
<>
<PostCover
uniqueKey={`short-${page.characterId}-${page.noteId}`}
images={images}
title={page.metadata?.content?.title}
className="rounded-lg w-full"
className="rounded-lg w-full aspect-auto mb-4 border-b-0"
/>
{page?.metadata?.content?.title && (
<h2 className="xlog-post-title text-xl font-bold page-title text-center">
<h2 className="xlog-post-title text-xl font-bold page-title text-center mb-2">
{page?.metadata?.content?.title}
</h2>
)}
<div className="xlog-post-content prose">
{page?.metadata?.content?.content}
</div>
</div>
</>
) : (
<>
{!onlyContent && (