Skip to content

Commit dbbdd4a

Browse files
committed
fix: render app screen path as plain text instead of web link
1 parent ac84e2f commit dbbdd4a

1 file changed

Lines changed: 16 additions & 10 deletions

File tree

  • client/src/app/[site]/events/components/EventLog

client/src/app/[site]/events/components/EventLog/EventRow.tsx

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,16 +133,22 @@ export function EventRow({ event, site, onClick }: EventRowProps) {
133133
</div>
134134

135135
<div className="text-neutral-600 dark:text-neutral-300 px-2 py-1 truncate">
136-
<Link
137-
href={pageUrl}
138-
target="_blank"
139-
rel="noopener noreferrer"
140-
onClick={e => e.stopPropagation()}
141-
className="hover:underline"
142-
title={pagePath}
143-
>
144-
{truncateString(pagePath, 60)}
145-
</Link>
136+
{isApp ? (
137+
<span title={pagePath}>
138+
{truncateString(pagePath, 60)}
139+
</span>
140+
) : (
141+
<Link
142+
href={pageUrl}
143+
target="_blank"
144+
rel="noopener noreferrer"
145+
onClick={e => e.stopPropagation()}
146+
className="hover:underline"
147+
title={pagePath}
148+
>
149+
{truncateString(pagePath, 60)}
150+
</Link>
151+
)}
146152
</div>
147153

148154
<div className="text-neutral-600 dark:text-neutral-300 px-2 py-1 truncate">

0 commit comments

Comments
 (0)