From f6e11d386e6555bc60d034a57446aef0c13199da Mon Sep 17 00:00:00 2001 From: Mara-Li Date: Sun, 2 Jun 2024 08:53:39 +0000 Subject: [PATCH] bruh --- quartz/components/ExplorerNode.tsx | 2 +- quartz/components/styles/explorer.scss | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/quartz/components/ExplorerNode.tsx b/quartz/components/ExplorerNode.tsx index 0486ac6e22cb3..58e12f45c9967 100644 --- a/quartz/components/ExplorerNode.tsx +++ b/quartz/components/ExplorerNode.tsx @@ -190,7 +190,7 @@ export function ExplorerNode({ node, opts, fullPath, fileData }: ExplorerNodePro const { iconAsSVG, hasIcon, iconPath } = getIconForNodes(node, opts.iconSettings) const dataForSanitized = sanitizeText(node.file?.slug ?? node.name) const isRoot = folderPath.split("/").length === 1 - const padding = 1 + folderPath.split("/").length >= 3 ? 1 : 1 + folderPath.split("/").length / 2 + const padding = 1 + folderPath.split("/").length >= 3 ? 0.5 : 1 + folderPath.split("/").length / 2 return ( <> {node.file ? ( diff --git a/quartz/components/styles/explorer.scss b/quartz/components/styles/explorer.scss index 787b9f4c189d1..dacf78425945d 100644 --- a/quartz/components/styles/explorer.scss +++ b/quartz/components/styles/explorer.scss @@ -174,7 +174,7 @@ li:has(> .folder-outer:not(.open)) > .folder-container > svg { #explorer-content ul li > a[data-hasicon="true"]:has(.file-title-icon) { position: relative; - left: 1.2em; + left: 0.1rem; } .folder-title-icon > svg { @@ -205,10 +205,10 @@ li:has(> .folder-outer:not(.open)) > .folder-container > svg { margin-left: -1.2rem; } &:has(.folder-title[data-hasicon="false"][data-isroot="false"]) { - margin-left: 1.2rem; + margin-left: 0.3rem; } } &[data-haschildren="false"] { - margin-left: -0.2rem; + margin-left: 0.3rem; } }