Skip to content

Instantly share code, notes, and snippets.

@itsMapleLeaf
Created March 24, 2017 22:16
Show Gist options
  • Save itsMapleLeaf/227807d846cc258dd4200634d2cd34aa to your computer and use it in GitHub Desktop.
Save itsMapleLeaf/227807d846cc258dd4200634d2cd34aa to your computer and use it in GitHub Desktop.
Styles for an automatically resizing tree-view
.tree-view-resizer {
width: max-content;
}
// hide the resize handle so we don't accidentally break things
.tree-view-resize-handle {
display: none;
}
// add some padding for breathing room (optional)
.tree-view {
padding-left: 1em;
padding-right: 1.75em;
}
@cj81499
Copy link

cj81499 commented May 18, 2017

@dodekeract check out the package "tree view autoresize".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment