fix: prevent monitor URL and name overflow using MUI sx prop
This commit is contained in:
1 parent
1f6826e045
commit
e4ade39db7
5 files changed
+52
-24
No files matched your search
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user