Skip to content

Commit

Permalink
fix: Keep at least two columns on storage page above xs size
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroWave022 committed Aug 26, 2024
1 parent 3507f29 commit b8cc534
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/[locale]/(default)/storage/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default function StoragePage({
contentClassName='w-full lg:w-[200px]'
/>
</div>
<div className='grid grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4'>
<div className='grid grid-cols-1 xs:grid-cols-2 gap-3 md:grid-cols-3 lg:grid-cols-4'>
{items
.slice((page - 1) * itemsPerPage, page * itemsPerPage)
.map((item) => (
Expand All @@ -131,7 +131,7 @@ export default function StoragePage({
</CardDescription>
</CardHeader>
<CardFooter className='justify-center gap-2'>
<span className='whitespace-nowrap text-sm'>
<span className='text-sm'>
{t('card.quantityInfo', { quantity: item.quantity })}
</span>
<Button className='whitespace-break-spaces'>
Expand Down

0 comments on commit b8cc534

Please sign in to comment.