From 878c1524ec47bb221314815ad2f2c0777f3afa22 Mon Sep 17 00:00:00 2001 From: cha0s Date: Sun, 28 Jun 2020 23:45:14 -0500 Subject: [PATCH] fix: tighter file tree --- src/client/sidebar.jsx | 2 +- src/client/sidebar.raw.scss | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/sidebar.jsx b/src/client/sidebar.jsx index 3474b92..4084143 100644 --- a/src/client/sidebar.jsx +++ b/src/client/sidebar.jsx @@ -126,7 +126,7 @@ const Sidebar = () => { })} // eslint-disable-next-line no-shadow onChange={(treeData) => setTreeData(treeData)} - scaffoldBlockPxWidth={20} + scaffoldBlockPxWidth={10} theme={FileExplorerTheme} treeData={mapComponents(treeData)} /> diff --git a/src/client/sidebar.raw.scss b/src/client/sidebar.raw.scss index 040206a..d96ca5a 100644 --- a/src/client/sidebar.raw.scss +++ b/src/client/sidebar.raw.scss @@ -12,17 +12,17 @@ .rstcustom__lineBlock { border-left: 1px solid #666666; height: 1.6em; - left: 2px; + left: -9px; } .rstcustom__row { left: -1.5em; - padding: 0.25em 0; + padding: 0.25em 0 0 0.125em; } .rstcustom__rowWrapper { cursor: pointer; - padding-left: 0.5em; + padding-left: 1em; &:hover { opacity: 1; } @@ -58,7 +58,7 @@ } button { top: 0.75em; - transform: translate3d(-33%, -50%, 0) scale(0.75); + transform: translate3d(-22.5%, -50%, 0) scale(0.75); } }