Closed primalmotion closed 5 years ago
Yep, it's compact by default… I just forgot to kill the option.
it doesn't look like compact to me :/
Here's a less snippet hack to stick into styles.less
to make the tree actually compact.
/* Reduce tree view size a bit */
.tree-view {
li:not(.list-nested-item), li.list-nested-item > .list-item {
line-height: 1.5rem;
}
.list-nested-item .selected::before {
height: 2em;
}
.project-root {
&::before {
height: 2.5em;
}
> .header {
height: 1.75rem;
span, &::before {
line-height: 1.75rem;
}
}
}
}
As it is, I find the default tree has way too much padding.
@silvestreh Hmm, if that is compact, I would very much like to see a super-compact option.
Yeah, I noticed this option stopped working and things weren't as compact as they used to be before. I snuck back into v1.3.9
and stole some of the compact styles from there and tweaked based on what @alutman had.
I mainly modified the left/right horizontal padding to not be so spaced out.
.tree-view {
li:not(.list-nested-item), li.list-nested-item > .list-item {
line-height: 1.85rem; // Edit me for height
}
.list-group .selected::before, .list-tree .selected::before {
height: 1.85rem; // Edit me for height
}
.name.icon::before {
margin: 0 0.5rem 0 0;
}
.list-tree.has-collapsable-children .list-nested-item > .list-tree > li,
.list-tree.has-collapsable-children .list-nested-item > .list-group > li {
padding-left: 1rem;
}
.list-tree.has-collapsable-children li.list-item {
margin-left: 1.1rem;
}
.list-tree.has-collapsable-children .list-nested-item > .list-item::before {
margin-right: 0.3rem;
}
}
I was a huge fan of the original compact setting though.
Can't work with that "compact tree" on a normal MacBook.
Got the same problem since I updated to the latest version.
Can't work with that "compact tree" on a normal MacBook.
Same. That plus the new "killer" docks feature made the editor unusable
Alright… looks like you guys really liked this feature! I reduced line height all over the theme in hopes to find a nice "middle ground" … I'll restore it as soon as I get some free time to work on it!
I think what would be great is to let people configure line height and left padding
Reducing the line height would be great, thanks, but it is also the horizontal padding that is just to much. As soon as you have a few nested folders, you do not properly see them anymore without scrolling horizontally. Reducing the line height would not fix that. That would only solve the vertical scrolling. Maybe just restore the actual compact view, or like @primalmotion suggested, let us configure it manually, that would be fine by me.
@silvestreh is the reinstation of a compact tree bar planned for the next release? I must admit, I've had to switch (to an inferior looking) theme for the time being, because the tree view is pretty unusable for me at the moment!
@willviles https://github.com/atom-material/atom-material-ui/issues/394#issuecomment-302123319 - this comment have stylesheet to fix tree view.
@willviles yeah, I'll reimplement the feature in a future release 😄
@chrisxclash thanks for supplying the styles :) they worked like a charm! @silvestreh thanks for the great and continued work on this theme!
Thanks for the kind words… I've been pretty busy lately and wasn't able to put in almost any work into this. Hang in there, I'll hopefully be able to write this up during the weekend!
Option Tree View Compact List has no effect
Reproduction Steps:
Expected behavior:
Tree view should be compacted
Observed behavior:
Tree view is not compacted
OS and version: macOS 10.12.5
Installed packages: