Skip to content

Instantly share code, notes, and snippets.

@itsMapleLeaf
Created March 24, 2017 22:16
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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;
}
@FlorianWendelborn
Copy link

@just-nobody this is amazing. Thanks for sharing!

@FlorianWendelborn
Copy link

FlorianWendelborn commented May 17, 2017

@just-nobody any idea for a 1.17.0 fix?

@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