Skip to content

Commit 4a8072f

Browse files
committed
chore: just add pb to product page instead of layout
1 parent 57d5e72 commit 4a8072f

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

src/app/[locale]/(main)/(container)/layout.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import {
2-
MOBILE_BUY_BOX_HEIGHT,
3-
MOBILE_FOOTER_HEIGHT,
4-
} from '@/config/responsive';
1+
import { MOBILE_FOOTER_HEIGHT } from '@/config/responsive';
52
import { Container } from '@mui/material';
63
import { FC, ReactNode } from 'react';
74

@@ -15,7 +12,7 @@ const Layout: FC<Layout> = async ({ children }) => {
1512
maxWidth="xl"
1613
sx={{
1714
mt: 3,
18-
pb: { xs: `${MOBILE_FOOTER_HEIGHT + MOBILE_BUY_BOX_HEIGHT}px`, md: 0 },
15+
pb: { xs: `${MOBILE_FOOTER_HEIGHT}px`, md: 0 },
1916
minHeight: '70vh',
2017
}}
2118
>

src/app/[locale]/(main)/(container)/products/[...params]/page.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import ProductGallery from './components/ProductGallery';
1212
import ProductTabs from './components/ProductTabs';
1313
import SizeSelector from './components/SizeSelector';
1414
import ProductProvider from './providers/ProductProvider';
15+
import { MOBILE_BUY_BOX_HEIGHT } from '@/config/responsive';
1516

1617
type PageProps = {
1718
params: { params: string[] };
@@ -61,7 +62,13 @@ const Page: FC<PageProps> = async ({ params: { params } }) => {
6162
selectedVariantId: null,
6263
}}
6364
>
64-
<Grid container spacing={2}>
65+
<Grid
66+
container
67+
spacing={2}
68+
sx={{
69+
pb: { xs: `${MOBILE_BUY_BOX_HEIGHT}px` },
70+
}}
71+
>
6572
<Grid item md={5} xs={12}>
6673
<ProductGallery
6774
thumbnail={product.image}

src/components/Footer/components/MobileFooter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const MobileFooter = () => {
6868
position: 'fixed',
6969
bottom: 0,
7070
boxShadow: (theme) => theme.shadows[3],
71-
zIndex: 2000,
71+
zIndex: 1290,
7272
}}
7373
>
7474
<MuiBottomNavigation

0 commit comments

Comments
 (0)