From c5086be6eb3ee68bc569f56157c3cdea75ae31f1 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Wed, 14 May 2025 15:29:03 -0700 Subject: [PATCH] Updated column widths. --- package.json | 1 + src/app/(main)/websites/[websiteId]/WebsiteTabs.tsx | 6 ++---- .../websites/[websiteId]/events/EventsTable.tsx | 12 ++++++------ .../websites/[websiteId]/sessions/SessionsTable.tsx | 6 +++--- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 65f16687..21c78d47 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "type": "git", "url": "https://github.com/umami-software/umami.git" }, + "type": "module", "scripts": { "dev": "next dev", "dev-turbo": "next dev -p 3001 --turbopack", diff --git a/src/app/(main)/websites/[websiteId]/WebsiteTabs.tsx b/src/app/(main)/websites/[websiteId]/WebsiteTabs.tsx index b6cb7849..1d8eacaf 100644 --- a/src/app/(main)/websites/[websiteId]/WebsiteTabs.tsx +++ b/src/app/(main)/websites/[websiteId]/WebsiteTabs.tsx @@ -88,15 +88,13 @@ export function WebsiteTabs({ websiteId }: { websiteId: string }) { }, ]; - const selected = links - ? links.find(({ path }) => path && pathname.endsWith(path))?.id - : 'overview'; + const selected = links.find(({ path }) => path && pathname.endsWith(path))?.id || 'overview'; return ( {links.map(({ id, label, icon, path }) => { return ( - + - + {(row: any) => ( )} - + {(row: any) => { return ( - <> + {row.eventName ? : } {formatMessage(row.eventName ? labels.triggeredEvent : labels.viewedPage)} {row.eventName || row.urlPath} - + ); }} - + {(row: any) => formatTimezoneDate(row.createdAt, 'PPPpp')} diff --git a/src/app/(main)/websites/[websiteId]/sessions/SessionsTable.tsx b/src/app/(main)/websites/[websiteId]/sessions/SessionsTable.tsx index 4db25fbc..3af17074 100644 --- a/src/app/(main)/websites/[websiteId]/sessions/SessionsTable.tsx +++ b/src/app/(main)/websites/[websiteId]/sessions/SessionsTable.tsx @@ -12,15 +12,15 @@ export function SessionsTable({ data = [] }: { data: any[]; showDomain?: boolean return ( - + {(row: any) => ( )} - - + + {(row: any) => (