From 6adeb7c80128ceb696d0e436fd0987f9e4f958d0 Mon Sep 17 00:00:00 2001 From: Megh Parikh Date: Wed, 28 Aug 2024 23:26:48 -0400 Subject: [PATCH] Attempt to make tree pixel-perfect --- index.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.css b/index.css index abddf45..b4e2c77 100644 --- a/index.css +++ b/index.css @@ -384,7 +384,7 @@ label input { .tree ul li { position: relative; padding-left: 1.5ch; - margin-left: 1.5ch; + margin-left: calc(1.5ch - var(--border-thickness)); border-left: var(--border-thickness) solid var(--text-color); } .tree ul li:before { @@ -398,6 +398,7 @@ label input { } .tree ul li:last-child { border-left: none; + padding-left: calc(1.5ch + var(--border-thickness)); } .tree ul li:last-child:after { position: absolute;