Skip to content

Commit c23c60c

Browse files
committed
fix: image center on mobile
1 parent 272fa7b commit c23c60c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/(protected)/books/[id]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default async function BookDetailsPage({
7373
priority
7474
/>
7575
</div>
76-
<div className="place-self-center text-center border-t">
76+
<div className="place-self-center text-center pt-4 border-t">
7777
<p className="text-gray-600">{bookRes.data.author}</p>
7878
<p className="text-sm text-gray-500">{bookRes.data.code}</p>
7979
</div>

app/(protected)/borrows/[id]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,14 @@ export default async function BorrowDetailsPage({
125125
<CardHeader>
126126
<CardTitle>Book Information</CardTitle>
127127
</CardHeader>
128-
<CardContent className="grid md:grid-cols-2 gap-4">
128+
<CardContent className="grid place-self-center md:grid-cols-2 gap-4">
129129
<Link href={`/books/${borrowRes.data.book.id}`}>
130130
<Image
131131
src={borrowRes.data.book?.cover ?? '/book-placeholder.svg'}
132132
alt={borrowRes.data.book.title + "'s cover"}
133133
width={256}
134134
height={256}
135-
className="shadow-md rounded-md w-56 h-auto hover:shadow-md hover:scale-105 transition-transform"
135+
className="rounded-md w-56 h-auto hover:shadow-md hover:scale-105 transition-transform"
136136
/>
137137
</Link>
138138
<div>

0 commit comments

Comments
 (0)