Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

add maxwidth on event/session activity

Francis Caobac3ab2c1a6a
diff --git a/src/app/(main)/websites/[websiteId]/events/EventsTable.tsx b/src/app/(main)/websites/[websiteId]/events/EventsTable.tsx
index c36ee5e73..7cefdd274 100644
--- a/src/app/(main)/websites/[websiteId]/events/EventsTable.tsx
+++ b/src/app/(main)/websites/[websiteId]/events/EventsTable.tsx
@@ -30,7 +30,7 @@ export function EventsTable({ data = [] }) {
<Text>
{formatMessage(row.eventName ? labels.triggeredEvent : labels.viewedPage)}
</Text>
- <Text weight="bold" truncate>
+ <Text weight="bold" style={{ maxWidth: '300px' }} truncate>
{row.eventName || row.urlPath}
</Text>
</Row>
diff --git a/src/app/(main)/websites/[websiteId]/sessions/SessionActivity.tsx b/src/app/(main)/websites/[websiteId]/sessions/SessionActivity.tsx
index 4dcf08b42..b9f34e485 100644
--- a/src/app/(main)/websites/[websiteId]/sessions/SessionActivity.tsx
+++ b/src/app/(main)/websites/[websiteId]/sessions/SessionActivity.tsx
@@ -59,7 +59,9 @@ export function SessionActivity({
? formatMessage(labels.triggeredEvent)
: formatMessage(labels.viewedPage)}
</Text>
- <Text weight="bold">{eventName || urlPath}</Text>
+ <Text weight="bold" style={{ maxWidth: '400px' }} truncate>
+ {eventName || urlPath}
+ </Text>
{hasData > 0 && <PropertiesButton websiteId={websiteId} eventId={eventId} />}
</Row>
</Row>