:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(dashboards): stop clipping column headers in dashboards table (#124893)
Luke Belton45f7e8c7ae82
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 462969506c66..e20bbdd2a439 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -6961,9 +6961,9 @@ snapshots:products-dashboards--dashboard-states--light:hash: v1.k794b7964.c55a0dcbaa20af97089a736ec14d2c4afaf842e84dab0e0513724c83d98f397e.km1y2gzWWxk5gGoUNawY4PcOeNKTC4WGL5XBZEaO1qMproducts-dashboards--list--dark:- hash: v1.k794b7964.ffb638c4c4828ece804a86e5e1b2e7dbb84b4289b1db66363b994f0bf8f8347e.b37W74QWipgtL1fKg12mtLrDc4R838hMhWlDlpPs2ac+ hash: v1.k794b7964.a6119eebdd10eeef1df6a6b2edc1c661fde71982360cda8ff65e975c37f8f946.dU-uiI0IBTr6rrOXHdAJ-dT6gzdJClRfD61Vo8W9b4gproducts-dashboards--list--light:- hash: v1.k794b7964.ea20735ab45fbb42c4ceb27cc284c0f98b4278ce8305fa39c288455a96160f0e.GixVBErjMYthDYK6PCBieb11jyIvYkAYWVpFQriCvhM+ hash: v1.k794b7964.6d71862a74af1bb034bf88599d52a18ef1f711cedc5e4f74c2d10e081be8c11c.DbJLlHC28BoKIgShNgMPAnpOvltS1Pe7uHsvDryCmbkproducts-dashboards--new-dashboard-modal--dark:hash: v1.k794b7964.523b9fd3b1a7d2c6386b7e02caf9c6a7dd3864abbc1e02f9c679addbdea27a4a.6SHr1yyvEntSP1P_2AmWjBZvhhIB3rnK_ZnLjqqPWbMproducts-dashboards--new-dashboard-modal--light:diff --git a/products/dashboards/frontend/dashboards/DashboardsTable.tsx b/products/dashboards/frontend/dashboards/DashboardsTable.tsxindex 51dd691772ef..4a424283492e 100644--- a/products/dashboards/frontend/dashboards/DashboardsTable.tsx+++ b/products/dashboards/frontend/dashboards/DashboardsTable.tsx@@ -196,6 +196,7 @@ export function DashboardsTable({{title: 'Folder',dataIndex: 'folder' as keyof DashboardType,+ width: 160,render: function Render(folder: DashboardType['folder']) {// Unfiled dashboards live in the default `Unfiled/Dashboards` folder — that's not a folder// the user chose, so show nothing rather than a filter affordance.@@ -216,16 +217,24 @@ export function DashboardsTable({)},} as LemonTableColumn<DashboardType, keyof DashboardType | undefined>,- createdByColumn<DashboardType>() as LemonTableColumn<DashboardType, keyof DashboardType | undefined>,- createdAtColumn<DashboardType>() as LemonTableColumn<DashboardType, keyof DashboardType | undefined>,- atColumn<DashboardType>('last_accessed_at', 'Last accessed at') as LemonTableColumn<- DashboardType,- keyof DashboardType | undefined- >,- atColumn<DashboardType>('last_viewed_at', 'You last viewed') as LemonTableColumn<- DashboardType,- keyof DashboardType | undefined- >,+ // Fixed-layout table: columns without a width split the leftover space, which clips their+ // nowrap headers on narrower screens. Size every column so the table scrolls instead.+ {+ ...createdByColumn<DashboardType>(),+ width: 160,+ } as LemonTableColumn<DashboardType, keyof DashboardType | undefined>,+ {+ ...createdAtColumn<DashboardType>(),+ width: 120,+ } as LemonTableColumn<DashboardType, keyof DashboardType | undefined>,+ {+ ...atColumn<DashboardType>('last_accessed_at', 'Last accessed at'),+ width: 180,+ } as LemonTableColumn<DashboardType, keyof DashboardType | undefined>,+ {+ ...atColumn<DashboardType>('last_viewed_at', 'You last viewed'),+ width: 180,+ } as LemonTableColumn<DashboardType, keyof DashboardType | undefined>,hideActions? {}: {