iTwin / appui

Monorepo for iTwin.js AppUi
MIT License
9 stars 2 forks source link

Customizable tree node height #405

Closed JoanaSmit closed 1 year ago

JoanaSmit commented 1 year ago

The tree node height is too small for mobile devices. Make node height customizable so we could increase touch area. tree

saskliutas commented 1 year ago

Hi, you can customize node height already. You can achieve that by passing custom treeRenderer:

<ControlledTree
  {...}
  treeRenderer={(treeProps) => <TreeRenderer {...treeProps} nodeHeight={() => 100} />}
 />
JoanaSmit commented 1 year ago

I copied the issue to iTwin/viewer-components-react because I need customizable node height in ModelsTree and CategoryTree.