diff --git a/src/app/vol/[journalId]/page.tsx b/src/app/vol/[journalId]/page.tsx index 044906b..cc80197 100644 --- a/src/app/vol/[journalId]/page.tsx +++ b/src/app/vol/[journalId]/page.tsx @@ -34,52 +34,45 @@ export default async function JournalDetail({ } return ( -
+
{/* 封面 */} - {/* 期刊号 & 标签 */} -
-
{`VOL.${journalInfo?.journalNo.toString().padStart(4, '0')}`}
- {journalInfo?.tags.length > 0 && - journalInfo.tags.map((tag: string) => ( - // - // {tag} - // +
+ {/* 期刊号 & 标签 */} +
+
{`VOL.${journalInfo?.journalNo.toString().padStart(4, '0')}`}
+ {journalInfo?.tags.length > 0 && + journalInfo.tags.map((tag: string) => ( + + {tag} + + ))} +
- - {tag} - - ))} + {/* 收藏期刊 */} +
{/* 标题 */}
-
-
- {journalInfo.title} -
- - {/* 收藏期刊 */} - +
+ {journalInfo.title}
+ {/* 作者 & 时间 */}

{journalInfo.editor}

diff --git a/src/components/Journal/JournalCard.tsx b/src/components/Journal/JournalCard.tsx index ee3f5b5..18c7c94 100644 --- a/src/components/Journal/JournalCard.tsx +++ b/src/components/Journal/JournalCard.tsx @@ -19,13 +19,15 @@ export default function JournalCard({ title, journalNo, showPlay = false, + scale = false, children, className, }: { image: string; - title?: string; journalNo: string; + title?: string; showPlay?: boolean; + scale?: boolean; children?: React.ReactNode; className?: string; }) { @@ -41,7 +43,7 @@ export default function JournalCard({ src={image} unoptimized alt={`Vol${journalNo}`} - className={`absolute bottom-0 group-hover:transform-scale-103 transition-transform-300`} + className={`absolute bottom-0 ${scale && 'group-hover:transform-scale-103 transition-transform-300'}`} /> {/* 标题 */} {!!title && ( diff --git a/src/components/Journal/JournalDetail/VolDetailCoverCard.tsx b/src/components/Journal/JournalDetail/VolDetailCoverCard.tsx index d225e3b..08d2916 100644 --- a/src/components/Journal/JournalDetail/VolDetailCoverCard.tsx +++ b/src/components/Journal/JournalDetail/VolDetailCoverCard.tsx @@ -8,7 +8,7 @@ export default function CoverCard({ journalInfo, songList }: { journalInfo: Jour return (
- +
); } diff --git a/src/components/Journal/JournalList/VolListCoverCard.tsx b/src/components/Journal/JournalList/VolListCoverCard.tsx index 6d6ecbc..76559a0 100644 --- a/src/components/Journal/JournalList/VolListCoverCard.tsx +++ b/src/components/Journal/JournalList/VolListCoverCard.tsx @@ -4,7 +4,7 @@ import { JournalCard } from '@/components'; export default function CoverCard({ title, img, no }: { title: string; img: string; no: string }) { return ( - +

{title}