Skip to content

Commit 3eb322e

Browse files
committed
corrected view oin mobile
1 parent 32be56b commit 3eb322e

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

src/app/providers.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,25 @@ const theme = createTheme({
2020
fontFamily: "'Inter', sans-serif",
2121
},
2222
components: {
23+
MuiCssBaseline: {
24+
styleOverrides: {
25+
html: { overflowX: "hidden" },
26+
body: { overflowX: "hidden" },
27+
},
28+
},
2329
MuiButton: {
2430
styleOverrides: {
2531
root: { textTransform: "none", borderRadius: 8 },
2632
},
2733
},
2834
MuiPaper: {
2935
styleOverrides: {
30-
root: { borderRadius: 12 },
36+
root: { borderRadius: 12, maxWidth: "100%", boxSizing: "border-box" },
37+
},
38+
},
39+
MuiTextField: {
40+
styleOverrides: {
41+
root: { maxWidth: "100%" },
3142
},
3243
},
3344
},

src/components/layout/LayoutShell.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ export function LayoutShell({ children }: { children: React.ReactNode }) {
1111
return (
1212
<Box sx={{ display: "flex", minHeight: "100vh" }}>
1313
<Navigation mobileOpen={mobileOpen} onClose={() => setMobileOpen(false)} />
14-
<Box sx={{ flexGrow: 1, display: "flex", flexDirection: "column", width: { md: `calc(100% - ${DRAWER_WIDTH}px)` } }}>
14+
<Box sx={{ flexGrow: 1, display: "flex", flexDirection: "column", width: { md: `calc(100% - ${DRAWER_WIDTH}px)` }, minWidth: 0, overflow: "hidden" }}>
1515
<Header onMenuToggle={() => setMobileOpen(!mobileOpen)} />
16-
<Box component="main" sx={{ flexGrow: 1, p: 3 }}>
16+
<Box component="main" sx={{ flexGrow: 1, p: { xs: 1.5, sm: 3 }, overflow: "hidden", maxWidth: "100%" }}>
1717
{children}
1818
</Box>
1919
<Box component="footer" sx={{ p: 2, borderTop: 1, borderColor: "divider" }}>

0 commit comments

Comments
 (0)