feat(ui): consolidate footer/nav, sliding indicator, hover cues, top-right saved toast#381
Merged
Merged
Conversation
…right saved toast
整体 UI 整理 + 跨页面"已保存"提示统一到右上角小 pill。
## Footer 简化
- 删 账号 icon(= openSettings('providers') 跟齿轮重复入口)
- 删 帮助 popover(version + 2 条外链跟 Settings → 关于 重复)
- 删 检查更新 按钮(Settings.about 已有同等控件)
- BETA 角标从 sidebar 移到右下角紧贴版本号
- 设置 icon 内嵌 12px 不再贴右边角
## Sidebar / Settings 三处 nav 统一
- 滑动指示器:用一个 absolute pill,currentTab 切换时 top/height 平滑过渡
到目标 button(cubic-bezier(0.16,1,0.3,1) 360ms,无 overshoot 的 Apple
ease-out-quint),不是各按钮瞬切背景。
- Hover 三段视觉层次:
基础态 ink-3 中灰文字 + 透明底
Hover ink 全黑文字 + 浅灰底(图标通过 currentColor 同步加深)
选中 ink 全黑文字 + 白色滑动 pill 底
用 .ol-nav-btn class + :hover 实现,inline color 让位给 CSS(CSS 不能盖
inline style 是关键)。
## "已保存" toast 改右上角小 pill
- 新增 components/SavedToast.tsx + lib/savedEvent.ts(emitSaved 事件总线)
- Translation / SelectionAsk 内联 banner 改为锚到 ol-thinscroll 控制台卡
右上角的 absolute pill;scroll wrapper 加 position:relative
- Settings → ASR 配置:CredentialField API key 内联"已保存"挪到 SettingsModal
右上角统一 pill(offsetStyle: right:54 避开关闭按钮);只保留持续性的
readError 在原位标识字段不可用
## Translation / SelectionAsk 简化
- 删跟 Settings.shortcuts 重复的快捷键卡(用户改键统一在 Settings 完成)
- SelectionAsk "历史保存"从全宽 Card 改成左对齐的小模块(标签 + toggle 紧贴)
- PageHeader 砍 kicker+desc → 单行 title
- 使用方法卡去 inset 提示块(保留 5 步 ol)
## Overview 收头
- PageHeader 单行 title(去 kicker / desc / 右侧"按 X 开始"pill)
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
appergb
pushed a commit
that referenced
this pull request
May 9, 2026
Beta-6 包含的合并: - #379 fix(recorder): watchdog 在 sleep 醒来后重检 stop_flag,消除停采误报 - #380 fix(commands): wrap tray refresh in run_on_main_thread 修主线程死锁 - #381 feat(ui): consolidate footer/nav, sliding indicator, hover cues, top-right saved toast - #378 拆分 coordinator 子状态机模块(间接合入) Tag: v1.2.24-6-beta-tauri 推到 main 后触发 release-tauri.yml Beta 流水线。
appergb
pushed a commit
that referenced
this pull request
May 9, 2026
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.
User description
Summary
整体 UI 整理一波:footer 减重、三处 nav 上滑动 pill + hover 文字加深、跨页面"已保存"提示统一到右上角小 pill、Translation / SelectionAsk 删跟 Settings.shortcuts 重复的快捷键卡 + 整体减字。
净减 152 行(+381 / -533,含 2 个新文件)。
Footer 简化
Sidebar / Settings 三处 nav 统一
滑动指示器:用一个 absolute pill,currentTab 切换时 top/height 平滑过渡到目标 button(cubic-bezier(0.16,1,0.3,1) 360ms,无 overshoot 的 Apple ease-out-quint)。
Hover 三段视觉层次:
icon 通过 currentColor 同步加深。用
.ol-nav-btnclass +:hover实现,inline color 让位给 CSS(CSS 不能盖 inline style 是关键)。"已保存" toast → 右上角小 pill
新增:
接入:
Translation / SelectionAsk 简化
Overview 收头
Test plan
PR Type
Enhancement
Description
Diagram Walkthrough
flowchart LR A["Footer simplified: version + BETA badge + settings icon"] B["Sidebar / Settings / Modal nav"] C["Sliding pill indicator (absolute transition)"] D["CSS .ol-nav-btn for 3‑level hover / active states"] E["SavedToast component + savedEvent bus"] F["Translation / SelectionAsk / CredentialField emitSaved"] G["Page headers lose kicker / desc / inline hotkey displays"] A -- "removes help popover, account, update" --> A B --> C B --> D E --> F F -- "replaces inline banners" --> G E -- "new component & event" --> EFile Walkthrough