Fix desktop cards layout in the gallery
This commit is contained in:
@@ -215,7 +215,6 @@ export default function ImprinkAppBar() {
|
|||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{/* Add theme toggle button to the right side of the toolbar on mobile */}
|
|
||||||
{isMobile && (
|
{isMobile && (
|
||||||
<Box sx={{ ml: 'auto' }}>
|
<Box sx={{ ml: 'auto' }}>
|
||||||
<ThemeToggleButton />
|
<ThemeToggleButton />
|
||||||
|
|||||||
@@ -34,12 +34,24 @@ export default function ProductCard({ product }: ProductCardProps) {
|
|||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
sx={{
|
sx={{
|
||||||
width: {
|
minWidth: {
|
||||||
xs: 'calc(50% - 6px)',
|
xs: 'calc(50% - 6px)',
|
||||||
sm: 'calc(50% - 8px)',
|
sm: 'calc(50% - 8px)',
|
||||||
lg: 'calc(33.333% - 12px)'
|
md: '280px',
|
||||||
|
lg: '320px'
|
||||||
|
},
|
||||||
|
flex: {
|
||||||
|
xs: '0 0 calc(50% - 6px)',
|
||||||
|
sm: '0 0 calc(50% - 8px)',
|
||||||
|
md: '1 1 280px',
|
||||||
|
lg: '1 1 320px'
|
||||||
|
},
|
||||||
|
maxWidth: {
|
||||||
|
xs: 'calc(50% - 6px)',
|
||||||
|
sm: 'calc(50% - 8px)',
|
||||||
|
md: 'none',
|
||||||
|
lg: 'none'
|
||||||
},
|
},
|
||||||
maxWidth: { xs: 'none', sm: 280, lg: 320 },
|
|
||||||
height: { xs: 240, sm: 300, lg: 340 },
|
height: { xs: 240, sm: 300, lg: 340 },
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
|
|||||||
Reference in New Issue
Block a user