From f88b315f9d8f89e8b030527a13ca27f954ec952f Mon Sep 17 00:00:00 2001 From: Todos Date: Wed, 4 Nov 2026 17:00:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(search):=20=E9=A6=96=E9=A1=B5=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=A1=86=E4=B8=8D=E5=86=8D=E6=82=AC=E5=81=9C=E4=B8=8A?= =?UTF-8?q?=E6=B5=AE=EF=BC=8C=E6=B6=88=E9=99=A4=E5=88=87=E6=8D=A2=E5=BC=95?= =?UTF-8?q?=E6=93=8E=E6=97=B6=E7=9A=84=E4=B8=8A=E4=B8=8B=E6=99=83=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 搜索卡片去掉 .glass-hover:Radix DropdownMenu 打开时 body 失去 hover,位移过渡在 translateY(-1px) 与 0 之间往返。补一条回归测试锁住卡片不带该类,其余卡片的全局 hover 行为不变。 --- web/src/components/search-bar.tsx | 8 +++++++- web/test/search-bar.test.tsx | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/web/src/components/search-bar.tsx b/web/src/components/search-bar.tsx index c8005be..29f7282 100644 --- a/web/src/components/search-bar.tsx +++ b/web/src/components/search-bar.tsx @@ -65,7 +65,13 @@ export function SearchBar({ }; return ( - + // hover={false}:这张卡片不带上浮位移。Radix DropdownMenu 打开时给 body 设 + // pointer-events:none,卡片 :hover 丢失,translateY(-1px) 来回过渡 —— 表现为 + // 切换引擎时搜索框上下晃动。其余卡片的 .glass-hover 全局行为不受影响。 +