Skip to content

Commit

Permalink
Fix TreeView so that the row height always matches the chevron height (
Browse files Browse the repository at this point in the history
  • Loading branch information
LFDanLu committed Aug 27, 2024
1 parent dcf312b commit 95c8344
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/@react-spectrum/tree/src/TreeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 95c8344

Please sign in to comment.