fix: prevent monitor URL and name overflow using MUI sx prop

This commit is contained in:
varunrmantri23 committed 2025-06-08 14:33:56 +05:30
1 parent 1f6826e045
commit e4ade39db7
5 files changed
+52 -24

No files matched your search

+12 -2
View File
@@ -203,7 +203,12 @@ const PageSpeedConfigure = () => {
<Typography
component="h1"
variant="h1"
className="monitor-name-text"
sx={{
maxWidth: "60vw",
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
}}
>
{monitor.name}
</Typography>
@@ -236,7 +241,12 @@ const PageSpeedConfigure = () => {
<Typography
component="h2"
variant="h2"
className="monitor-url-text"
sx={{
maxWidth: "60vw",
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
}}
>
{monitor.url?.replace(/^https?:\/\//, "") || "..."}
</Typography>
+12 -2
View File
@@ -249,7 +249,12 @@ const Configure = () => {
<Typography
component="h1"
variant="h1"
className="monitor-name-text"
sx={{
maxWidth: "60vw",
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
}}
>
{monitor.name}
</Typography>
@@ -282,7 +287,12 @@ const Configure = () => {
<Typography
component="h2"
variant="h2"
className="monitor-url-text"
sx={{
maxWidth: "60vw",
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
}}
>
{monitor.url?.replace(/^https?:\/\//, "") || "..."}
</Typography>