From 519f7ecd38f6a3d1ea1fe22ab2030aeb7e9cb776 Mon Sep 17 00:00:00 2001 From: Shyam-Chen Date: Fri, 29 Nov 2024 10:11:14 +0800 Subject: [PATCH] 1,594th Commit --- .github/registry/Dockerfile | 2 +- ui/src/components/select/Select.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/registry/Dockerfile b/.github/registry/Dockerfile index 892d1a1e..f8cbc352 100644 --- a/.github/registry/Dockerfile +++ b/.github/registry/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20 as base +FROM node:20 AS base WORKDIR /usr/src/app ADD . . diff --git a/ui/src/components/select/Select.vue b/ui/src/components/select/Select.vue index 99ace93c..de5bc823 100644 --- a/ui/src/components/select/Select.vue +++ b/ui/src/components/select/Select.vue @@ -185,7 +185,7 @@ function onKeydown(evt: KeyboardEvent) { if (list.value) { const hover = list.value.querySelector('.Select-Item.hover') as HTMLDivElement; - const offsetTop = hover?.offsetTop; + const offsetTop = hover?.offsetTop - 64; if (offsetTop) list.value.scrollTop = offsetTop - hover.offsetHeight; } }