Skip to content

Commit 9197d23

Browse files
committed
distribute extra horizontal space evenly
In details modals, instead of fixing the dimension cell width and leaving a gap between dimension and metric columns, distribute the empty space evenly between all columns. This is the current prod behaviour in breakdown modals.
1 parent 87b3c80 commit 9197d23

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

assets/js/dashboard/stats/modals/details-breakdown.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ export function DetailsBreakdown({
180180
isActive={isActive}
181181
/>
182182
),
183+
width: 'w-40 max-w-40 md:w-48 md:max-w-48',
183184
align: 'left'
184185
},
185186
...query.metrics
@@ -482,7 +483,7 @@ function DimensionCell({
482483
isActive?: boolean
483484
}) {
484485
return (
485-
<div className="max-w-44 md:max-w-52 break-all flex items-center gap-x-1">
486+
<div className="break-all flex items-center gap-x-1">
486487
<DrilldownLink path={rootRoute.path} filterInfo={getFilterInfo(row)}>
487488
{row.dimensions[0]}
488489
</DrilldownLink>

0 commit comments

Comments
 (0)