Fix stack: 100vh slots, single sticky per layer, tabs not separate.

Removes dual-sticky tabs and tiny scroll ticks that broke folder overlap.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-20 23:01:00 -04:00
co-authored by Cursor
parent 07dffaa323
commit acfc6ddd86
11 changed files with 105 additions and 116 deletions
+2 -3
View File
@@ -32,9 +32,8 @@ export function initStackScroll(options = {}) {
const layer = tab.dataset.goto;
const target = document.querySelector(`${sectionSelector}[data-layer="${layer}"]`);
if (!target) return;
const navH = 56;
const y = target.getBoundingClientRect().top + window.scrollY - navH;
window.scrollTo({ top: y, behavior: 'smooth' });
const y = target.offsetTop - 48;
window.scrollTo({ top: Math.max(0, y), behavior: 'smooth' });
});
});