From d6e6fd202d65493e018275b717f1ae9c2d032f80 Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Mon, 10 Feb 2025 14:14:25 +1100 Subject: [PATCH] Reduce paddingLeft calculation in DOMService for improved layout --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 8f74249..3e02bcf 100644 --- a/index.js +++ b/index.js @@ -156,7 +156,7 @@ class DOMService { link.href = `?${doc.slug}`; link.textContent = doc.title || doc.path.split('/').pop().replace('.md', ''); link.dataset.path = doc.path; - link.style.paddingLeft = `${level * 0.8 + 1.2}rem`; + link.style.paddingLeft = `${level * 0.6}rem`; // Reduced from 0.8 + 1.2 to just 0.6 link.onclick = (e) => { e.preventDefault();