fix: keep page outline indicator straight

This commit is contained in:
dadachann
2026-09-04 13:52:18 +00:00
parent e6d9bfd21d
commit 9b829b5b7d
2 changed files with 18 additions and 1 deletions
+14 -1
View File
@@ -19,10 +19,23 @@ body {
margin-inline-start: 0.53125rem;
}
#nd-toc > div > div > a > svg {
#nd-toc > div > div > a > svg,
#nd-toc > div > div > div.absolute {
display: none;
}
/* Keep every active segment on one x-axis, even when labels are indented. */
#nd-toc > div > div > a[data-active="true"]::before {
content: "";
position: absolute;
inset-block: -0.375rem;
inset-inline-start: 0.5rem;
width: 1px;
background: var(--color-fd-primary);
border-radius: 0;
z-index: 1;
}
/* Mintlify-style section labels: headings, not expandable folder controls. */
#nd-sidebar p.inline-flex.items-center.gap-2 {
margin-block: 1.15rem 0.35rem;