Open
Conversation
Author
Author
|
本次提交主要聚焦于视觉升级与用户体验优化,重点改进了插件的品牌识别度和顶部搜索交互体验。
|
Owner
|
感谢提交!!我研究一下如何合并 哈哈 |
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.


PR 描述
本次提交主要解决了侧边栏导航图标同步问题,并对顶部搜索栏进行了全新的视觉升级。
修复侧边栏图标无法移除的问题:
之前移除站点时依赖 textContent 比对,因图标 HTML 结构变化导致比对失效。
修复方案:在动态创建导航项时添加 data-site-name 属性,删除逻辑改为通过该属性精准定位 DOM 元素,确保设置中取消勾选站点时,侧边栏图标能正确同步消失。
对顶部搜索区域进行了 Google 风格的卡片式重构:
整体容器:弃用旧版布局,改为统一的大圆角(24px)白色卡片容器,提升视觉聚焦度。
交互按钮优化:
启动PK按钮:设计为醒目的蓝色胶囊按钮,置于输入框内部右侧。
附件按钮:改为白色胶囊样式,增加“附件”文字标签,风格与主按钮呼应。
收藏按钮:改为圆形白色按钮(Icon-only),与附件按钮风格统一。
布局调整:优化了按钮组的排列顺序([收藏] -> [附件] -> [启动PK]),并精细调整了间距和阴影效果,使其在视觉上更加协调、现代。