From fc60aaaba5754bafcf2e24010aed70caadbb3ea8 Mon Sep 17 00:00:00 2001 From: Silberengel Date: Sun, 7 Jun 2026 19:23:56 +0200 Subject: [PATCH] adjust menu buttons --- src/lib/utils.ts | 4 ---- src/pages/primary/NoteListPage/index.tsx | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 3aaeb632..0ca641f8 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -105,10 +105,6 @@ export function nearestScrollportRoot(el: HTMLElement | null): Element | undefin return undefined } -function rectsOverlap(a: DOMRectReadOnly, b: DOMRectReadOnly): boolean { - return a.bottom > b.top && a.top < b.bottom && a.right > b.left && a.left < b.right -} - /** True when `el` intersects the viewport or its nearest scrollport (with margin). */ export function elementIsNearVisibleScrollport(el: HTMLElement, marginPx: number): boolean { const elRect = el.getBoundingClientRect() diff --git a/src/pages/primary/NoteListPage/index.tsx b/src/pages/primary/NoteListPage/index.tsx index bc6b9cd5..87fdc18a 100644 --- a/src/pages/primary/NoteListPage/index.tsx +++ b/src/pages/primary/NoteListPage/index.tsx @@ -179,6 +179,7 @@ function NoteListPageTitlebar({ ) : null} +
-