diff --git a/frontend/src/lib/components/SectionOutline.svelte b/frontend/src/lib/components/SectionOutline.svelte index e9a5709..ab213aa 100644 --- a/frontend/src/lib/components/SectionOutline.svelte +++ b/frontend/src/lib/components/SectionOutline.svelte @@ -43,14 +43,17 @@ {@const open = selectedId === s.chunk_id} {@const active = activeKey != null && activeKey === s.chunk_id} {@const typeLabel = sectionTypeLabel(s.section_type)} + {@const depth = Math.max(0, (s.level ?? 1) - 1)}