Skip to content

Commit e8141cb

Browse files
committed
fix: remove unnecessary image sizing utilities from book pages
- Removed `object-cover` from card view to prevent forced cropping - Removed `aspect-[3/4]` from detail view for flexible image display - Improved visual consistency between card and detail layouts
1 parent b132ac3 commit e8141cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/BookCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function BookCard({ meta }: { meta: BookMeta }) {
1111
<img
1212
src={meta.cover}
1313
alt={meta.title}
14-
className="w-32 h-44 sm:w-36 sm:h-52 lg:w-40 lg:h-56 object-cover rounded-lg"
14+
className="w-32 h-44 sm:w-36 sm:h-52 lg:w-40 lg:h-56 rounded-lg"
1515
loading="lazy"
1616
/>
1717
)}

pages/book/[slug].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default function BookDetail({mdxSource, title, author, date, updated, sum
8787
alt={title}
8888
className="mx-auto mb-6
8989
w-48 sm:w-56 lg:w-64
90-
aspect-[3/4] object-cover
90+
object-cover
9191
rounded-xl shadow-sm"
9292
loading="lazy"
9393
width={384} height={512} // CLS 방지용 대략치

0 commit comments

Comments
 (0)