Skip to content

Commit 95c8344

Browse files
authored
Fix TreeView so that the row height always matches the chevron height (#6950)
1 parent dcf312b commit 95c8344

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/@react-spectrum/tree/src/TreeView.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ const treeCellGrid = style({
140140
display: 'grid',
141141
width: 'full',
142142
alignItems: 'center',
143-
// TODO: needed to use spectrum var since gridTemplateColumns uses baseSizing and not scaled sizing
144-
gridTemplateColumns: ['minmax(0, auto)', 'minmax(0, auto)', 'minmax(0, auto)', 'var(--spectrum-global-dimension-size-500)', 'minmax(0, auto)', '1fr', 'minmax(0, auto)', 'auto'],
143+
gridTemplateColumns: ['minmax(0, auto)', 'minmax(0, auto)', 'minmax(0, auto)', 'minmax(0, auto)', 'minmax(0, auto)', '1fr', 'minmax(0, auto)', 'auto'],
145144
gridTemplateRows: '1fr',
146145
gridTemplateAreas: [
147146
'drag-handle checkbox level-padding expand-button icon content actions actionmenu'

0 commit comments

Comments
 (0)