ui(frontend): 新增 Logo 首页入口并优化窄屏表单#380
Open
techotaku39 wants to merge 2 commits into
Open
Conversation
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.
改动概述
新增 Web 端顶部 Logo / 标题的首页入口,并补齐浏览器插件中“打开笔记”的快捷入口;同时优化窄屏下左侧表单滚动、按钮宽度和视频理解配置项换行挤压的问题。
把用户实际会点击的 Logo / 标题区域 做成一致、明确的导航入口:在笔记页和设置页都保持同样的 Logo 尺寸、间距和返回首页行为,避免不同页面顶部入口表现不一致。
为什么
实际使用时有几个体验问题比较明显:
Web 端 Logo / 标题缺少稳定的首页入口
笔记页和设置页顶部 Logo / 标题的尺寸、位置和可点击行为不一致,部分页面缺少点击 Logo 返回首页的入口。用户通常会自然地把左上角 Logo 当成“回首页”的入口,如果有的页面能点、有的页面不能点,或者样式不一致,就会造成困惑。
插件里缺少直接打开当前笔记页的入口
在浏览器插件的 Popup / Sidepanel 里查看任务时,如果想跳到完整笔记预览页,需要有一个更直接、更稳定的入口,而不是让用户自己找链接或重新进入 Web 页面。
窄屏表单布局有细节问题
在较窄宽度下,左侧表单会出现双滚动条;编辑状态下“重新生成 / 新建笔记”按钮宽度不一致;视频理解里的“采样间隔”和“拼图尺寸”标签容易换行并挤压输入框。这些都会让移动端或窄窗口下的操作显得不稳定。
做了什么
Web 端 Logo 入口
BrandLogo组件,统一封装 Logo / 标题展示和点击返回首页行为。HomeLayout和SettingLayout复用同一个 Logo 入口,保证尺寸、间距、位置和交互一致。浏览器插件打开笔记入口
open-note-page工具,统一生成并打开当前笔记预览页。窄屏表单布局优化
测试方式
pnpm build(Web 前端)通过pnpm typecheck && pnpm build(浏览器插件)通过回归风险
影响范围集中在 Web 前端布局和浏览器插件 Popup / Sidepanel 顶部入口:
HomeLayout、SettingLayout、Logo / 标题入口、左侧表单滚动区域和视频理解表单布局。不涉及后端接口、数据库迁移或配置变更。主要风险是不同浏览器对扩展页 URL 的打开行为可能存在细微差异,需要在插件环境中重点确认“打开笔记”入口。
Checklist
feature/*/fix/*/release/*/hotfix/*)develop;线上紧急 →master;发版 → 见 §4.3)type(scope): subject格式(CONTRIBUTING.md §5.1).env/ 大型二进制