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.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
mobile-friendly changes
Francis Caocf2ab575ba67
diff --git a/src/app/(main)/websites/[websiteId]/event-data/EventDataPivotTable.tsx b/src/app/(main)/websites/[websiteId]/event-data/EventDataPivotTable.tsxindex f2cb20172..a0aad0e39 100644--- a/src/app/(main)/websites/[websiteId]/event-data/EventDataPivotTable.tsx+++ b/src/app/(main)/websites/[websiteId]/event-data/EventDataPivotTable.tsx@@ -7,7 +7,7 @@ import { Empty } from '@/components/common/Empty';import Link from '@/components/common/Link';import { LoadingPanel } from '@/components/common/LoadingPanel';import { Pager } from '@/components/common/Pager';-import { useEventDataPivotQuery, useEventDataPropertiesQuery, useMessages, useNavigation } from '@/components/hooks';+import { useEventDataPivotQuery, useEventDataPropertiesQuery, useMessages, useMobile, useNavigation } from '@/components/hooks';export function EventDataPivotTable({websiteId,@@ -18,6 +18,7 @@ export function EventDataPivotTable({}) {const { t, labels } = useMessages();const { router, updateParams } = useNavigation();+ const { isMobile } = useMobile();const propertiesQuery = useEventDataPropertiesQuery(websiteId);const pivotQuery = useEventDataPivotQuery(websiteId, eventName);@@ -72,8 +73,8 @@ export function EventDataPivotTable({renderEmpty={() => <Empty />}><Column gap="4" minWidth="0" width="100%" maxWidth="100%">- <Column minWidth="0" width="100%" maxWidth="100%" overflow="hidden">- <DataTable data={tableQuery?.data} style={{ width: '100%' }}>+ <Column minWidth="0" width="100%" maxWidth="100%" overflow={isMobile ? undefined : 'hidden'}>+ <DataTable data={tableQuery?.data} style={{ width: '100%' }} displayMode={isMobile ? 'cards' : 'table'}><DataColumn id="session" label={t(labels.session)} width="0.75fr">{(row: any) => (<Link href={updateParams({ session: row.sessionId })}>diff --git a/src/app/(main)/websites/[websiteId]/event-data/EventDataPropertyChart.tsx b/src/app/(main)/websites/[websiteId]/event-data/EventDataPropertyChart.tsxindex 940ec7bc3..5a7f8e5d1 100644--- a/src/app/(main)/websites/[websiteId]/event-data/EventDataPropertyChart.tsx+++ b/src/app/(main)/websites/[websiteId]/event-data/EventDataPropertyChart.tsx@@ -144,7 +144,7 @@ export function EventDataPropertyChart({error={valuesQuery.error}minHeight="300px">- <Grid columns="1fr 1fr" gap padding="2" alignItems="start">+ <Grid columns={{ base: '1fr', md: '1fr 1fr' }} gap padding="2" alignItems="start"><ListTable title={propertyName} metric={t(labels.count)} data={tableData} />{pieChartData && <PieChart type="doughnut" chartData={pieChartData} />}</Grid>