fix(ui): shorten URL label and resize notification button (#2470)
This commit is contained in:
1 parent
36d8e8c0cf
commit
df42932e0c
2 files changed
+9
-2
No files matched your search
@@ -68,6 +68,9 @@ const MonitorDetailsControlHeader = ({
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
testAllNotifications({ monitorId: monitor?._id });
|
testAllNotifications({ monitorId: monitor?._id });
|
||||||
}}
|
}}
|
||||||
|
sx={{
|
||||||
|
whiteSpace: 'nowrap',
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{t("sendTestNotifications")}
|
{t("sendTestNotifications")}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -33,8 +33,12 @@ const Status = ({ monitor }) => {
|
|||||||
gap={theme.spacing(4)}
|
gap={theme.spacing(4)}
|
||||||
>
|
>
|
||||||
<PulseDot color={statusColor[determineState(monitor)]} />
|
<PulseDot color={statusColor[determineState(monitor)]} />
|
||||||
<Typography variant="monitorUrl">
|
<Typography variant="monitorUrl" noWrap>
|
||||||
{monitor?.url?.replace(/^https?:\/\//, "") || "..."}
|
{monitor?.url ? (
|
||||||
|
monitor.url?.length > 55
|
||||||
|
? `${monitor.url.replace(/^https?:\/\//, "")?.slice(0, 55)}…`
|
||||||
|
: monitor.url.replace(/^https?:\/\//, "")
|
||||||
|
) : "…"}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Dot />
|
<Dot />
|
||||||
<Typography>
|
<Typography>
|
||||||
|
|||||||
Reference in new issue
Block a user