From a3f5ef5dac976285f9822929ea07a7d9cefdfef7 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Mon, 25 May 2026 16:20:50 +0000 Subject: [PATCH] Smooth-scroll focused release items into view --- frontend/src/composables/useKeyboardNavigation.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/src/composables/useKeyboardNavigation.ts b/frontend/src/composables/useKeyboardNavigation.ts index 3d94858..88c2ab5 100644 --- a/frontend/src/composables/useKeyboardNavigation.ts +++ b/frontend/src/composables/useKeyboardNavigation.ts @@ -311,6 +311,15 @@ function handleSyncedRowResize() { } function ensureElementVisibleVertically(element: HTMLElement) { + if (element.hasAttribute("data-nav-release-item")) { + element.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest", + }) + return + } + const rootStyle = window.getComputedStyle(document.documentElement) const headerHeight = parseFloat(rootStyle.getPropertyValue("--header-height") || "0") const topMargin = headerHeight + 24