From eecdb7e552a4f19e9e37ec794e3c860f1b083800 Mon Sep 17 00:00:00 2001 From: karenvicent Date: Wed, 25 Jun 2025 18:27:37 -0400 Subject: [PATCH] fix: center and constrain empty placeholder layout with format --- client/src/Components/Fallback/index.css | 4 +- client/src/Components/Fallback/index.jsx | 211 +++++++++++------------ 2 files changed, 106 insertions(+), 109 deletions(-) diff --git a/client/src/Components/Fallback/index.css b/client/src/Components/Fallback/index.css index 25680eaf0..357988b07 100644 --- a/client/src/Components/Fallback/index.css +++ b/client/src/Components/Fallback/index.css @@ -39,6 +39,6 @@ background-repeat: no-repeat; } -.fallback__status>.MuiStack-root { +.fallback__status > .MuiStack-root { margin-left: var(--env-var-spacing-2); -} \ No newline at end of file +} diff --git a/client/src/Components/Fallback/index.jsx b/client/src/Components/Fallback/index.jsx index c5ae48cb3..864c92441 100644 --- a/client/src/Components/Fallback/index.jsx +++ b/client/src/Components/Fallback/index.jsx @@ -69,132 +69,129 @@ const Fallback = ({ }; return ( - - - {mode === "light" ? ( - - ) : ( - - )} - - - - - - {vowelStart ? "An" : "A"} {title} is used to: - - {checks?.map((check, index) => ( - - ))} - - {/* TODO - display a different fallback if user is not an admin*/} - {isAdmin && ( - <> - - {/* Bulk create of uptime monitors */} - {title === "uptime monitor" && ( + {vowelStart ? "An" : "A"} {title} is used to: + + {checks?.map((check, index) => ( + + ))} + + {/* TODO - display a different fallback if user is not an admin*/} + {isAdmin && ( + <> - )} - - {/* Warning box for PageSpeed monitor */} - {title === "pagespeed monitor" && showPageSpeedWarning && ( - - svg": { - color: theme.palette.warningSecondary.contrastText, - }, - }, - }} + {/* Bulk create of uptime monitors */} + {title === "uptime monitor" && ( + + )} + + {/* Warning box for PageSpeed monitor */} + {title === "pagespeed monitor" && showPageSpeedWarning && ( + + svg": { + color: theme.palette.warningSecondary.contrastText, + }, + }, + }} + > + {settingsData?.pagespeedKeySet === false && ( + + )} + - - )} - - )} - - + )} + + )} + + ); };