Repository navigation
首页搜索框:切换引擎时上下晃动(hover 上浮与下拉菜单 pointer-events 冲突) - #20
Merged
Merged
Conversation
搜索卡片去掉 .glass-hover:Radix DropdownMenu 打开时 body 失去 hover,位移过渡在 translateY(-1px) 与 0 之间往返。补一条回归测试锁住卡片不带该类,其余卡片的全局 hover 行为不变。
This was referenced Nov 6, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
body设pointer-events: none,卡片的:hover随之丢失,translateY(-1px)在 0 与 -1px 之间来回过渡,这正是用户反馈的「切换搜索时搜索框上下晃动」。.glass-hover的全局样式、引擎切换逻辑与下拉菜单结构均未改动;毛玻璃材质(半透明底、背景模糊、描边、投影、圆角)完全保留。改动
web/src/components/search-bar.tsx— 搜索卡片的GlassCard改为hover={false},去掉上浮位移;就地加注释说明根因,避免日后被「补回」。web/test/search-bar.test.tsx— 新增回归测试:断言搜索卡片带.glass但不带.glass-hover(jsdom 不做布局,锁住的是根因链条的起点)。测试
pnpm lint(退出码 0,28 条 warning 全部位于未改动的components/ui脚手架文件)、pnpm format:check、pnpm typecheck、pnpm build、pnpm test(worker 102 条 + web 35 条,含新增那条)。gh workflow run "CI" --ref tds/conv-01a1a5c6-…(对话分支推送不自动触发),五个检查步骤全绿。getBoundingClientRect().top):bing.com/search?q=…,新标签打开)、图标网格链接卡片悬停仍上浮 1px(matrix(1,0,0,1,0,-1)),说明未误伤全局样式。