From 80654dc515eb50b43a28822525a568d62f5116ef Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sun, 1 Feb 2026 01:33:00 +0100 Subject: [PATCH] Refactor folder item styling in index.css --- src/index.css | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/src/index.css b/src/index.css index f0b6bbf..574de25 100644 --- a/src/index.css +++ b/src/index.css @@ -360,6 +360,24 @@ body { position: relative; } +.folder-children > * { + position: relative; +} + +.folder-children > *::after { + content: ""; + position: absolute; + left: -12px; + top: -10px; + bottom: -10px; + width: 2px; + background: var(--tree-line); +} + +.folder-children > :last-child::after { + bottom: 50%; +} + .folder-children .folder-item::before, .folder-children .prompt-item::before { content: ""; @@ -372,22 +390,6 @@ body { transform: translateY(-50%); } -.folder-children .folder-item::after, -.folder-children .prompt-item::after { - content: ""; - position: absolute; - left: -12px; - top: -10px; - bottom: -10px; - width: 2px; - background: var(--tree-line); -} - -.folder-children > :last-child .folder-item::after, -.folder-children > :last-child .prompt-item::after { - bottom: 50%; -} - .workspace { padding: 28px 32px; height: 100%;