From f0f19125d56be66e36c48a068238bce3371a3cc1 Mon Sep 17 00:00:00 2001 From: Yuri Karamian Date: Sat, 20 Jun 2026 14:45:11 +0200 Subject: [PATCH] Pin Notebooks header while scrolling, add divider above it (#126) --- src/lib/components/Sidebar.svelte | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lib/components/Sidebar.svelte b/src/lib/components/Sidebar.svelte index 4819c9f..90963ae 100644 --- a/src/lib/components/Sidebar.svelte +++ b/src/lib/components/Sidebar.svelte @@ -1010,6 +1010,16 @@ flex: 1; overflow-y: auto; padding: 4px 0; + border-top: 1px solid var(--border-light); + } + + /* Pin the Notebooks header so its collapse/expand-all button stays reachable while the tree + scrolls; the section's border-top draws the divider above it, matching the Tags section. (issue #126) */ + .section > .section-header { + position: sticky; + top: 0; + z-index: 1; + background: var(--bg-secondary); } .tags-section {