Merge pull request #1789 from bluewave-labs/fix/fe/maintenance-background

Fix Maintenance page layout issue
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-02-18 12:07:43 -08:00
commit c438a72041
1 file changed
+16 -30
+16 -30
View File
@@ -42,23 +42,23 @@ const Maintenance = () => {
fetchMaintenanceWindows();
}, [page, rowsPerPage, updateTrigger]);
if (maintenanceWindows.length === 0) {
return (
<Box
className="maintenance table-container"
sx={{
':has(> [class*="fallback__"])': {
position: "relative",
border: 1,
borderColor: theme.palette.primary.lowContrast,
borderRadius: theme.shape.borderRadius,
borderStyle: "dashed",
backgroundColor: theme.palette.primary.main,
overflow: "hidden",
},
}}
>
{maintenanceWindows.length > 0 && (
<Stack gap={theme.spacing(8)}>
<Fallback
title="maintenance window"
checks={[
"Mark your maintenance periods",
"Eliminate any misunderstandings",
"Stop sending alerts in maintenance windows",
]}
link="/maintenance/create"
isAdmin={isAdmin}
/>
);
}
return (
<Stack gap={theme.spacing(10)}>
<Stack
direction="row"
justifyContent="space-between"
@@ -88,20 +88,6 @@ const Maintenance = () => {
updateCallback={handleActionMenuDelete}
/>
</Stack>
)}
{maintenanceWindows.length === 0 && (
<Fallback
title="maintenance window"
checks={[
"Mark your maintenance periods",
"Eliminate any misunderstandings",
"Stop sending alerts in maintenance windows",
]}
link="/maintenance/create"
isAdmin={isAdmin}
/>
)}
</Box>
);
};