fixes for allback

This commit is contained in:
Alex Holliday committed 2025-11-26 18:56:48 +00:00
1 parent 746ed4a3c1
commit 5f43c23b26
3 files changed
+5 -13

No files matched your search

@@ -1,4 +1,3 @@
import Box from "@mui/material/Box";
import Stack from "@mui/material/Stack"; import Stack from "@mui/material/Stack";
import SkeletonCard from "@/components/design-elements/SkeletonCard"; import SkeletonCard from "@/components/design-elements/SkeletonCard";
import Typography from "@mui/material/Typography"; import Typography from "@mui/material/Typography";
@@ -32,7 +31,7 @@ export const BaseFallback: React.FC<BaseFallbackProps> = ({
lg: "50%", lg: "50%",
xl: "40%", xl: "40%",
}} }}
padding={{ xs: theme.spacing(4), md: theme.spacing(16) }} padding={{ xs: theme.spacing(8), md: theme.spacing(16) }}
bgcolor={theme.palette.primary.main} bgcolor={theme.palette.primary.main}
border={1} border={1}
borderColor={theme.palette.primary.lowContrast} borderColor={theme.palette.primary.lowContrast}
@@ -42,14 +41,7 @@ export const BaseFallback: React.FC<BaseFallbackProps> = ({
}} }}
{...props} {...props}
> >
<Box <SkeletonCard showHalo={true} />
mt={theme.spacing(32)}
mb={theme.spacing(8)}
width={"80%"}
maxWidth={216}
>
<SkeletonCard showHalo={true} />
</Box>
{children} {children}
</Stack> </Stack>
); );
@@ -12,7 +12,7 @@ interface SkeletonCardProps {
* Default size is 60% of original design * Default size is 60% of original design
*/ */
const SkeletonCard: React.FC<SkeletonCardProps> = ({ const SkeletonCard: React.FC<SkeletonCardProps> = ({
width = "100%", width = 216,
showHalo = true, showHalo = true,
}) => { }) => {
const theme = useTheme(); const theme = useTheme();
@@ -66,7 +66,7 @@ const SkeletonCard: React.FC<SkeletonCardProps> = ({
}; };
return ( return (
<Box sx={{ position: "relative" }}> <Box sx={{ position: "relative", mt: 20 }}>
{showHalo && ( {showHalo && (
<Box <Box
sx={{ sx={{
@@ -77,7 +77,7 @@ const PageSpeedMonitorsPage = () => {
return ( return (
<MonitorBasePageWithStates <MonitorBasePageWithStates
loading={isValidating} loading={isValidating}
error={true} error={error}
items={monitors} items={monitors}
page="pageSpeed" page="pageSpeed"
actionLink="/pagespeed/create" actionLink="/pagespeed/create"