Skip to content

Open-source status page, incident response and uptime monitoring

🧑‍🎨 small feedback (#889)

Thibault Le Ouayf49e093164d9
diff --git a/apps/web/src/app/app/[workspaceSlug]/(dashboard)/monitors/[id]/layout.tsx b/apps/web/src/app/app/[workspaceSlug]/(dashboard)/monitors/[id]/layout.tsx
index 87af8d312..4a492146f 100644
--- a/apps/web/src/app/app/[workspaceSlug]/(dashboard)/monitors/[id]/layout.tsx
+++ b/apps/web/src/app/app/[workspaceSlug]/(dashboard)/monitors/[id]/layout.tsx
@@ -33,7 +33,14 @@ export default async function Layout({
title={monitor.name}
description={
<div className="flex flex-wrap items-center gap-2 text-muted-foreground">
- <span className="max-w-xs truncate md:max-w-md">{monitor.url}</span>
+ <a
+ href={monitor.url}
+ target="_blank"
+ rel="noreferrer"
+ className="max-w-xs truncate text-base text-muted-foreground md:max-w-md"
+ >
+ {monitor.url}
+ </a>
<span className="text-muted-foreground/50 text-xs">•</span>
<StatusDotWithTooltip
active={monitor.active}
@@ -45,7 +52,7 @@ export default async function Layout({
<span className="text-muted-foreground/50 text-xs">•</span>
<TagBadgeWithTooltip
tags={monitor.monitorTagsToMonitors.map(
- ({ monitorTag }) => monitorTag,
+ ({ monitorTag }) => monitorTag
)}
/>
</>
diff --git a/apps/web/src/app/public/monitors/[id]/page.tsx b/apps/web/src/app/public/monitors/[id]/page.tsx
index f19560de8..3be7cca37 100644
--- a/apps/web/src/app/public/monitors/[id]/page.tsx
+++ b/apps/web/src/app/public/monitors/[id]/page.tsx
@@ -102,9 +102,14 @@ export default async function Page({
<Shell className="sticky top-2 z-10 flex items-center justify-between gap-2 bg-background/80 backdrop-blur-sm">
<div className="min-w-0">
<p className="font-semibold text-sm">{monitor.name}</p>
- <p className="truncate text-base text-muted-foreground">
+ <a
+ href={monitor.url}
+ target="_blank"
+ rel="noreferrer"
+ className="truncate text-base text-muted-foreground"
+ >
{monitor.url}
- </p>
+ </a>
</div>
<div className="flex items-center gap-2">
{isDirty ? <ButtonReset /> : null}