fix: add global Typography variants for monitor text truncation
This commit is contained in:
1 parent
e4ade39db7
commit
5e2fa7a8f0
6 files changed
+38
-71
No files matched your search
@@ -27,34 +27,14 @@ const Status = ({ monitor }) => {
|
||||
|
||||
return (
|
||||
<Stack>
|
||||
<Typography
|
||||
variant="h1"
|
||||
sx={{
|
||||
maxWidth: "45vw",
|
||||
overflow: "hidden",
|
||||
textOverflow: "ellipsis",
|
||||
whiteSpace: "nowrap",
|
||||
}}
|
||||
>
|
||||
{monitor?.name}
|
||||
</Typography>
|
||||
<Typography variant="monitorName">{monitor?.name}</Typography>
|
||||
<Stack
|
||||
direction="row"
|
||||
alignItems={"center"}
|
||||
gap={theme.spacing(4)}
|
||||
>
|
||||
<PulseDot color={statusColor[determineState(monitor)]} />
|
||||
<Typography
|
||||
variant="h2"
|
||||
sx={{
|
||||
fontFamily: "monospace",
|
||||
fontWeight: "bolder",
|
||||
maxWidth: "60vw",
|
||||
overflow: "hidden",
|
||||
textOverflow: "ellipsis",
|
||||
whiteSpace: "nowrap",
|
||||
}}
|
||||
>
|
||||
<Typography variant="monitorUrl">
|
||||
{monitor?.url?.replace(/^https?:\/\//, "") || "..."}
|
||||
</Typography>
|
||||
<Dot />
|
||||
|
||||
Reference in new issue
Block a user