diff --git a/client/src/Components/MonitorDetailsControlHeader/status.jsx b/client/src/Components/MonitorDetailsControlHeader/status.jsx index 9e01dd502..3d6e62c60 100644 --- a/client/src/Components/MonitorDetailsControlHeader/status.jsx +++ b/client/src/Components/MonitorDetailsControlHeader/status.jsx @@ -27,17 +27,14 @@ const Status = ({ monitor }) => { return ( - {monitor?.name} + {monitor?.name} - + {monitor?.url?.replace(/^https?:\/\//, "") || "..."} diff --git a/client/src/Components/MonitorStatusHeader/index.jsx b/client/src/Components/MonitorStatusHeader/index.jsx index edadfb8df..14ae39b8a 100644 --- a/client/src/Components/MonitorStatusHeader/index.jsx +++ b/client/src/Components/MonitorStatusHeader/index.jsx @@ -21,7 +21,7 @@ const MonitorStatusHeader = ({ path, isLoading = false, isAdmin, monitor }) => { justifyContent="space-between" > - {monitor?.name} + {monitor?.name} { > {monitor?.url?.replace(/^https?:\/\//, "") || "..."} diff --git a/client/src/Pages/PageSpeed/Configure/index.jsx b/client/src/Pages/PageSpeed/Configure/index.jsx index c20b4daf4..84e26c6a0 100644 --- a/client/src/Pages/PageSpeed/Configure/index.jsx +++ b/client/src/Pages/PageSpeed/Configure/index.jsx @@ -202,7 +202,7 @@ const PageSpeedConfigure = () => { {monitor.name} @@ -234,7 +234,7 @@ const PageSpeedConfigure = () => { {monitor.url?.replace(/^https?:\/\//, "") || "..."} diff --git a/client/src/Pages/PageSpeed/Monitors/Components/Card/index.jsx b/client/src/Pages/PageSpeed/Monitors/Components/Card/index.jsx index 36bf91eee..8c83f102a 100644 --- a/client/src/Pages/PageSpeed/Monitors/Components/Card/index.jsx +++ b/client/src/Pages/PageSpeed/Monitors/Components/Card/index.jsx @@ -245,7 +245,7 @@ const Card = ({ monitor }) => { diff --git a/client/src/Pages/Uptime/Configure/index.jsx b/client/src/Pages/Uptime/Configure/index.jsx index 395486228..f75e53e84 100644 --- a/client/src/Pages/Uptime/Configure/index.jsx +++ b/client/src/Pages/Uptime/Configure/index.jsx @@ -248,7 +248,7 @@ const Configure = () => { {monitor.name} @@ -280,7 +280,7 @@ const Configure = () => { {monitor.url?.replace(/^https?:\/\//, "") || "..."} diff --git a/client/src/Utils/Theme/globalTheme.js b/client/src/Utils/Theme/globalTheme.js index 631f056dd..59c26866a 100644 --- a/client/src/Utils/Theme/globalTheme.js +++ b/client/src/Utils/Theme/globalTheme.js @@ -632,6 +632,35 @@ const baseTheme = (palette) => ({ }), }, }, + MuiTypography: { + variants: [ + { + props: { variant: "monitorName" }, + style: { + fontSize: typographyLevels.xl, + color: palette.primary.contrastText, + fontWeight: 500, + overflow: "hidden", + textOverflow: "ellipsis", + whiteSpace: "nowrap", + maxWidth: "calc((100vw - var(--env-var-width-2)) / 2)", + }, + }, + { + props: { variant: "monitorUrl" }, + style: { + fontSize: typographyLevels.l, + color: palette.primary.contrastTextSecondary, + fontWeight: "bolder", + fontFamily: "monospace", + overflow: "hidden", + textOverflow: "ellipsis", + whiteSpace: "nowrap", + maxWidth: "calc((100vw - var(--env-var-width-2)) / 2)", + }, + }, + ], + }, }, shape: { borderRadius: 2,