mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-28 14:44:15 +00:00
feat: add mii images to carousel and add mii info to mii page
This commit is contained in:
parent
e12521e6fa
commit
70f4950363
2 changed files with 68 additions and 28 deletions
|
|
@ -132,7 +132,7 @@ export default async function MiiList({ searchParams, userId, where }: Props) {
|
|||
key={mii.id}
|
||||
className="flex flex-col bg-zinc-50 rounded-3xl border-2 border-zinc-300 shadow-lg p-3 transition hover:scale-105 hover:bg-cyan-100 hover:border-cyan-600"
|
||||
>
|
||||
<Carousel images={mii.images.length > 0 ? mii.images : ["/missing.webp"]} />
|
||||
<Carousel images={[`/mii/${mii.id}/mii.webp`, `/mii/${mii.id}/qr-code.webp`, ...mii.images]} />
|
||||
|
||||
<div className="p-4 flex flex-col gap-1 h-full">
|
||||
<Link href={`/mii/${mii.id}`} className="font-bold text-2xl overflow-hidden text-ellipsis line-clamp-2" title={mii.name}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue