fix(ui): shorten URL label and resize notification button (#2470)

This commit is contained in:
Deepanshu committed 2025-06-16 20:40:19 +05:30
1 parent 36d8e8c0cf
commit df42932e0c
2 files changed
+9 -2

No files matched your search

@@ -68,6 +68,9 @@ const MonitorDetailsControlHeader = ({
onClick={() => {
testAllNotifications({ monitorId: monitor?._id });
}}
sx={{
whiteSpace: 'nowrap',
}}
>
{t("sendTestNotifications")}
</Button>
@@ -33,8 +33,12 @@ const Status = ({ monitor }) => {
gap={theme.spacing(4)}
>
<PulseDot color={statusColor[determineState(monitor)]} />
<Typography variant="monitorUrl">
{monitor?.url?.replace(/^https?:\/\//, "") || "..."}
<Typography variant="monitorUrl" noWrap>
{monitor?.url ? (
monitor.url?.length > 55
? `${monitor.url.replace(/^https?:\/\//, "")?.slice(0, 55)}…`
: monitor.url.replace(/^https?:\/\//, "")
) : "…"}
</Typography>
<Dot />
<Typography>