Skip to content

Commit d6e6fd2

Browse files
committed
Reduce paddingLeft calculation in DOMService for improved layout
1 parent 695f9aa commit d6e6fd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class DOMService {
156156
link.href = `?${doc.slug}`;
157157
link.textContent = doc.title || doc.path.split('/').pop().replace('.md', '');
158158
link.dataset.path = doc.path;
159-
link.style.paddingLeft = `${level * 0.8 + 1.2}rem`;
159+
link.style.paddingLeft = `${level * 0.6}rem`; // Reduced from 0.8 + 1.2 to just 0.6
160160

161161
link.onclick = (e) => {
162162
e.preventDefault();

0 commit comments

Comments
 (0)