Created
March 24, 2017 22:16
-
-
Save itsMapleLeaf/227807d846cc258dd4200634d2cd34aa to your computer and use it in GitHub Desktop.
Styles for an automatically resizing tree-view
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@just-nobody this is amazing. Thanks for sharing!