fix(ui): 统一 SavedToast 弹框位置与进出方向#505
Merged
Merged
Conversation
- 默认停靠右上角(fixed top:20 right:28),与页头「风格市场/刷新/导入ZIP」 按钮同区;淡蓝 pill、0.8s 自动收回 - 新增 slideFrom 属性:'right'(默认,屏幕右侧进出)/ 'top'(上方进出), 始终"从哪来回哪去" - SettingsModal 用 slideFrom="top" + absolute 锚内容区,借 overflow:hidden 裁边实现"从屏幕外上方进出" - Style 页移除 bottom-right 的 offsetStyle 覆盖,回归统一默认
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
appergb
pushed a commit
that referenced
this pull request
May 20, 2026
…st 统一定位 + Windows 听写后 SendInput 降压 合并 #503(fix(windows): reduce SendInput pressure after dictation): 听写结束后降低 SendInput 调用压力,优化 coordinator/dictation/insertion 路径。 合并 #505(fix(ui): 统一 SavedToast 弹框位置与进出方向): SavedToast 默认停靠右上角,新增 slideFrom 属性支持 right/top 两种进出方向, SettingsModal 用 slideFrom="top" + absolute 锚定内容区。 合并 #506(refactor(ui): 精简多语言文案 + 设置/风格/市场界面与图标重构): 精简 en/ja/ko/zh-CN/zh-TW 过长功能描述文案, 风格包卡片与编辑器抽屉改用 framer-motion 进出动效, Settings/Marketplace/shared/Icon 界面重构。 本次只动版本号,逻辑改动已在 #503 #505 #506 落盘。
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
改动
提示弹框(
SavedToast)此前位置 / 动画不统一(页面级左上、风格页右下),本次统一:fixed,top:20 right:28),与页头「风格市场 / 刷新 / 导入 ZIP」按钮同区slideFrom属性:'right'(默认,屏幕右侧进出)/'top'(上方进出)—— 始终"从哪来回哪去"SettingsModal用slideFrom="top"+absolute锚内容区Style页移除 bottom-right 的offsetStyle覆盖,回归统一默认测试
tsc+vite build通过(隔离分支单独验证)typescript-reviewer交叉审核:H1(motion variant 补全 x/y)已修,其余为既有项 / 非阻塞PR Type
Enhancement, Bug fix
Description
Unify
SavedToastdefault placementAdd directional slide-in/out control
Auto-dismiss toast after 0.8s
Reuse defaults across style and settings
Diagram Walkthrough
File Walkthrough
SavedToast.tsx
Add directional animated toast behavioropenless-all/app/src/components/SavedToast.tsx
framer-motionenter/exit animations.slideFromto supportrightandtopmotion origins.SettingsModal.tsx
Anchor modal toast to content areaopenless-all/app/src/components/SettingsModal.tsx
slideFrom="top"so the toast animates vertically.absoluteto anchor inside the modal content.Style.tsx
Remove custom toast placement overrideopenless-all/app/src/pages/Style.tsx
offsetStyleoverride forSavedToast.behavior.