fix: tighter file tree

This commit is contained in:
cha0s 2020-06-28 23:45:14 -05:00
parent 820d444019
commit 878c1524ec
2 changed files with 5 additions and 5 deletions

View File

@ -126,7 +126,7 @@ const Sidebar = () => {
})} })}
// eslint-disable-next-line no-shadow // eslint-disable-next-line no-shadow
onChange={(treeData) => setTreeData(treeData)} onChange={(treeData) => setTreeData(treeData)}
scaffoldBlockPxWidth={20} scaffoldBlockPxWidth={10}
theme={FileExplorerTheme} theme={FileExplorerTheme}
treeData={mapComponents(treeData)} treeData={mapComponents(treeData)}
/> />

View File

@ -12,17 +12,17 @@
.rstcustom__lineBlock { .rstcustom__lineBlock {
border-left: 1px solid #666666; border-left: 1px solid #666666;
height: 1.6em; height: 1.6em;
left: 2px; left: -9px;
} }
.rstcustom__row { .rstcustom__row {
left: -1.5em; left: -1.5em;
padding: 0.25em 0; padding: 0.25em 0 0 0.125em;
} }
.rstcustom__rowWrapper { .rstcustom__rowWrapper {
cursor: pointer; cursor: pointer;
padding-left: 0.5em; padding-left: 1em;
&:hover { &:hover {
opacity: 1; opacity: 1;
} }
@ -58,7 +58,7 @@
} }
button { button {
top: 0.75em; top: 0.75em;
transform: translate3d(-33%, -50%, 0) scale(0.75); transform: translate3d(-22.5%, -50%, 0) scale(0.75);
} }
} }