Skip to content

Commit 4f992b2

Browse files
committed
1 parent 7075bfa commit 4f992b2

File tree

3 files changed

+1440
-1364
lines changed

3 files changed

+1440
-1364
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,13 +324,13 @@ export default async function BorrowDetailsPage({
324324
<CardHeader>
325325
<CardTitle>Previous Borrows</CardTitle>
326326
</CardHeader>
327-
<CardContent className="flex items-end">
327+
<CardContent className="flex items-end overflow-x-scroll p-6">
328328
{prevBorrows.map((b) => (
329329
<Link
330330
href={`/borrows/${b.id}`}
331331
key={b.id}
332332
className={clsx(
333-
'relative left-0 transition-all not-first-of-type:-ml-12 brightness-75',
333+
'shrink-0 relative left-0 transition-all not-first-of-type:-ml-12 brightness-75',
334334
'hover:transition-all hover:-translate-y-4 hover:transform-none hover:brightness-100',
335335
'peer peer-hover:left-12 peer-hover:transition-all',
336336
'[transform:perspective(800px)_rotateY(20deg)]',
@@ -344,8 +344,8 @@ export default async function BorrowDetailsPage({
344344
src={b.book?.cover ?? '/book-placeholder.svg'}
345345
alt={b.book.title + "'s cover"}
346346
width={160}
347-
height={160}
348-
className="shadow-md rounded-lg w-40 h-auto place-self-center row-span-2"
347+
height={240}
348+
className="shadow-md rounded-lg w-40 h-64 place-self-center object-cover"
349349
/>
350350
</Link>
351351
))}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"firebase": "^11.1.0",
3030
"firebase-admin": "^13.0.2",
3131
"lucide-react": "^0.475.0",
32-
"next": "15.1.0",
32+
"next": "15",
3333
"react": "^19.0.0",
3434
"react-day-picker": "8.10.1",
3535
"react-dom": "^19.0.0",

0 commit comments

Comments
 (0)