From f9aa13e13889029543b10931353092e4237d0732 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Mon, 23 Feb 2026 17:42:53 +0900 Subject: [PATCH] Update MkMenu.vue --- packages/frontend/src/components/MkMenu.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/frontend/src/components/MkMenu.vue b/packages/frontend/src/components/MkMenu.vue index e8f00b5902..17d835dd0d 100644 --- a/packages/frontend/src/components/MkMenu.vue +++ b/packages/frontend/src/components/MkMenu.vue @@ -539,11 +539,9 @@ function parentMouseMove(ev: MouseEvent) { let childSideBottomY = childBounding.bottom - rootBounding.top; const childSideHeight = childSideBottomY - childSideTopY; - if (childSideHeight < CHILD_SIDE_MIN_HEIGHT) { - const expandY = (CHILD_SIDE_MIN_HEIGHT - childSideHeight) / 2; - childSideTopY -= expandY; - childSideBottomY += expandY; - } + const expandY = Math.max(0, (CHILD_SIDE_MIN_HEIGHT - childSideHeight)) / 2; + childSideTopY -= expandY; + childSideBottomY += expandY; childSideTopY -= childSideYPadding; childSideBottomY += childSideYPadding;