Fix: Attempt to Fix Tab Boundaries

This commit is contained in:
Youwes09
2026-04-22 10:57:03 -05:00
parent 690f59c602
commit 7dd4f52308
4 changed files with 9 additions and 19 deletions
@@ -30,17 +30,10 @@
if (!tabsEl) return;
const active = tabsEl.querySelector<HTMLElement>(".tab.tabActive");
if (!active) return;
const containerLeft = tabsEl.getBoundingClientRect().left;
tabIndicator = {
left: active.getBoundingClientRect().left - containerLeft,
width: active.offsetWidth,
};
tabIndicator = { left: active.offsetLeft, width: active.offsetWidth };
}
$effect(() => {
tab; // reactive on tab change
if (anims) requestAnimationFrame(updateIndicator);
});
$effect(() => { tab; if (anims) requestAnimationFrame(() => requestAnimationFrame(updateIndicator)); });
const SEARCH_PAGES = 3;
const SEARCH_LIMIT = 200;