fix: add global Typography variants for monitor text truncation

This commit is contained in:
varunrmantri23 committed 2025-06-08 23:12:48 +05:30
1 parent e4ade39db7
commit 5e2fa7a8f0
6 files changed
+38 -71

No files matched your search

+2 -14
View File
@@ -202,13 +202,7 @@ const PageSpeedConfigure = () => {
<Box>
<Typography
component="h1"
variant="h1"
sx={{
maxWidth: "60vw",
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
}}
variant="monitorName"
>
{monitor.name}
</Typography>
@@ -240,13 +234,7 @@ const PageSpeedConfigure = () => {
</Tooltip>
<Typography
component="h2"
variant="h2"
sx={{
maxWidth: "60vw",
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
}}
variant="monitorUrl"
>
{monitor.url?.replace(/^https?:\/\//, "") || "..."}
</Typography>
@@ -245,7 +245,7 @@ const Card = ({ monitor }) => {
</IconBox>
<Typography
component="h2"
variant="h2"
variant="monitorUrl"
fontWeight={500}
alignSelf="center"
>
+2 -14
View File
@@ -248,13 +248,7 @@ const Configure = () => {
<Box>
<Typography
component="h1"
variant="h1"
sx={{
maxWidth: "60vw",
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
}}
variant="monitorName"
>
{monitor.name}
</Typography>
@@ -286,13 +280,7 @@ const Configure = () => {
</Tooltip>
<Typography
component="h2"
variant="h2"
sx={{
maxWidth: "60vw",
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
}}
variant="monitorUrl"
>
{monitor.url?.replace(/^https?:\/\//, "") || "..."}
</Typography>