fix: replace breakpoints with theme.spacing for consistent layout sizing
This commit is contained in:
1 parent
2bb76a1b2f
commit
6db0aff073
1 file changed
+4
-8
@@ -87,21 +87,17 @@ const Fallback = ({
|
||||
sx={{
|
||||
display: "flex",
|
||||
borderStyle: "dashed",
|
||||
height: "60vh",
|
||||
width: "45%",
|
||||
height: { sm: "50vh", md: "60vh" },
|
||||
width: { md: "45%", lg: "40%" },
|
||||
minWidth: theme.spacing(200),
|
||||
maxHeight: theme.breakpoints.values.sm,
|
||||
maxWidth: theme.breakpoints.values.md,
|
||||
maxHeight: theme.spacing(350),
|
||||
maxWidth: theme.spacing(450),
|
||||
}}
|
||||
>
|
||||
<Stack
|
||||
className={`fallback__${title?.trim().split(" ")[0]}`}
|
||||
alignItems="center"
|
||||
gap={theme.spacing(20)}
|
||||
sx={{
|
||||
maxHeight: "70vh",
|
||||
justifyContent: "center",
|
||||
}}
|
||||
>
|
||||
{mode === "light" ? (
|
||||
<Skeleton style={{ zIndex: 1 }} />
|
||||
|
||||
Reference in new issue
Block a user