From 95c8344cbd9405354fdc770ac58d6ce2d9b4aebd Mon Sep 17 00:00:00 2001 From: Daniel Lu Date: Tue, 27 Aug 2024 09:41:11 -0700 Subject: [PATCH] Fix TreeView so that the row height always matches the chevron height (#6950) --- packages/@react-spectrum/tree/src/TreeView.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/@react-spectrum/tree/src/TreeView.tsx b/packages/@react-spectrum/tree/src/TreeView.tsx index f842f5311fc..19450fa09f9 100644 --- a/packages/@react-spectrum/tree/src/TreeView.tsx +++ b/packages/@react-spectrum/tree/src/TreeView.tsx @@ -140,8 +140,7 @@ const treeCellGrid = style({ display: 'grid', width: 'full', alignItems: 'center', - // TODO: needed to use spectrum var since gridTemplateColumns uses baseSizing and not scaled sizing - gridTemplateColumns: ['minmax(0, auto)', 'minmax(0, auto)', 'minmax(0, auto)', 'var(--spectrum-global-dimension-size-500)', 'minmax(0, auto)', '1fr', 'minmax(0, auto)', 'auto'], + gridTemplateColumns: ['minmax(0, auto)', 'minmax(0, auto)', 'minmax(0, auto)', 'minmax(0, auto)', 'minmax(0, auto)', '1fr', 'minmax(0, auto)', 'auto'], gridTemplateRows: '1fr', gridTemplateAreas: [ 'drag-handle checkbox level-padding expand-button icon content actions actionmenu'