diff --git a/client/src/Components/MonitorDetailsControlHeader/status.jsx b/client/src/Components/MonitorDetailsControlHeader/status.jsx index 9e01dd502..685663695 100644 --- a/client/src/Components/MonitorDetailsControlHeader/status.jsx +++ b/client/src/Components/MonitorDetailsControlHeader/status.jsx @@ -27,7 +27,12 @@ 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..71ce80679 100644 --- a/client/src/Components/MonitorStatusHeader/index.jsx +++ b/client/src/Components/MonitorStatusHeader/index.jsx @@ -21,7 +21,12 @@ 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 d81387e1b..5305f8b59 100644 --- a/client/src/Pages/PageSpeed/Configure/index.jsx +++ b/client/src/Pages/PageSpeed/Configure/index.jsx @@ -203,6 +203,7 @@ const PageSpeedConfigure = () => { {monitor.name} @@ -235,6 +236,7 @@ const PageSpeedConfigure = () => { {monitor.url?.replace(/^https?:\/\//, "") || "..."} diff --git a/client/src/Pages/Uptime/Configure/index.jsx b/client/src/Pages/Uptime/Configure/index.jsx index 395486228..09cdbc0b9 100644 --- a/client/src/Pages/Uptime/Configure/index.jsx +++ b/client/src/Pages/Uptime/Configure/index.jsx @@ -249,6 +249,7 @@ const Configure = () => { {monitor.name} @@ -281,6 +282,7 @@ const Configure = () => { {monitor.url?.replace(/^https?:\/\//, "") || "..."} diff --git a/client/src/index.css b/client/src/index.css index f83cdc461..8ede1627d 100644 --- a/client/src/index.css +++ b/client/src/index.css @@ -84,6 +84,21 @@ html { display: none; } +/*adding the classes for handling the overflow of url and name for monitors in one place*/ +.monitor-url-text { + max-width: 70vh; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.monitor-name-text { + max-width: 70vh; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + @keyframes ripple { from { opacity: 1;