From 7821272bcdfd22b0fa1f5c1fc98be067dfc5cb47 Mon Sep 17 00:00:00 2001 From: Joe Allen <49467845+LiJoeAllen@users.noreply.github.com> Date: Tue, 18 Aug 2026 19:54:31 +0800 Subject: [PATCH] fix: hover preview mouse following MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fixed Chinese variable name that caused JS runtime error (预估Width → estimatedWidth-like logic) - Proper viewport boundary detection with flip-to-left and flip-to-top - Uses maxHeight prop instead of hardcoded 360 - Cleaner position calculation with Math.min/Math.max clamping --- src/components/common/HoverPreview.vue | 27 +++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/components/common/HoverPreview.vue b/src/components/common/HoverPreview.vue index 480820c..228b897 100644 --- a/src/components/common/HoverPreview.vue +++ b/src/components/common/HoverPreview.vue @@ -1,5 +1,5 @@