fix: center and constrain empty placeholder layout with format
This commit is contained in:
1 parent
fd51af97fa
commit
eecdb7e552
2 files changed
+7
-10
No files matched your search
@@ -39,6 +39,6 @@
|
|||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fallback__status>.MuiStack-root {
|
.fallback__status > .MuiStack-root {
|
||||||
margin-left: var(--env-var-spacing-2);
|
margin-left: var(--env-var-spacing-2);
|
||||||
}
|
}
|
||||||
@@ -76,9 +76,9 @@ const Fallback = ({
|
|||||||
display: "flex",
|
display: "flex",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
}}>
|
}}
|
||||||
|
>
|
||||||
<Box
|
<Box
|
||||||
|
|
||||||
border={1}
|
border={1}
|
||||||
borderColor={theme.palette.primary.lowContrast}
|
borderColor={theme.palette.primary.lowContrast}
|
||||||
borderRadius={theme.shape.borderRadius}
|
borderRadius={theme.shape.borderRadius}
|
||||||
@@ -90,7 +90,7 @@ const Fallback = ({
|
|||||||
height: "60vh",
|
height: "60vh",
|
||||||
width: "45%",
|
width: "45%",
|
||||||
minWidth: "400px",
|
minWidth: "400px",
|
||||||
maxHeight:"700px",
|
maxHeight: "700px",
|
||||||
maxWidth: "800px",
|
maxWidth: "800px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -99,10 +99,8 @@ const Fallback = ({
|
|||||||
alignItems="center"
|
alignItems="center"
|
||||||
gap={theme.spacing(20)}
|
gap={theme.spacing(20)}
|
||||||
sx={{
|
sx={{
|
||||||
maxHeight:"70vh",
|
maxHeight: "70vh",
|
||||||
justifyContent:"center"
|
justifyContent: "center",
|
||||||
|
|
||||||
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{mode === "light" ? (
|
{mode === "light" ? (
|
||||||
@@ -146,8 +144,7 @@ const Fallback = ({
|
|||||||
<Button
|
<Button
|
||||||
variant="contained"
|
variant="contained"
|
||||||
color="accent"
|
color="accent"
|
||||||
sx={{ alignSelf: "center"
|
sx={{ alignSelf: "center" }}
|
||||||
}}
|
|
||||||
onClick={() => navigate(link)}
|
onClick={() => navigate(link)}
|
||||||
>
|
>
|
||||||
Let's create your first {title}
|
Let's create your first {title}
|
||||||
|
|||||||
Reference in new issue
Block a user