feat: use swiper for post cover

This commit is contained in:
DIYgod
2023-07-19 17:24:48 +01:00
parent f7fdc1e3fc
commit 88c8c8d586
11 changed files with 132 additions and 41 deletions
+4 -1
View File
@@ -48,7 +48,10 @@ const Card = ({
)}
>
<PostCover
cover={post.metadata?.content.cover}
uniqueKey={`${post.characterId}-${post.noteId}`}
images={
post.metadata?.content.images || [post.metadata?.content.cover as any]
}
title={post.metadata?.content?.title}
/>
<div className="px-3 py-2 sm:px-5 sm:py-4 w-full min-w-0 h-[148px] sm:h-[166px] flex flex-col space-y-2 text-sm">