fix(chat): 加号菜单补上与安全/分支菜单一致的开合动画 - #682
Merged
Merged
Conversation
Closes #681 Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Linked issue
Closes #681
Summary
提示词输入框加号菜单与右侧安全模式、Git 分支菜单共用同一套
DropdownMenu,但开合动画选择器漏了.composer-add-dropdown,所以加号菜单是硬弹出 / 硬消失。把该类补进 Desktop 与 WebUI 已有的菜单动画规则:打开约 180ms 淡入上浮(
translateY(6px) scale(0.97)),关闭约 120ms 更快淡出下沉;prefers-reduced-motion时同样关掉过渡。WebUI 额外对齐 Base UI 的data-starting-style/data-ending-style,避免只写data-state时动画对不上。Change scope
crates/agent-gui/src/index.css— Desktop 加号菜单纳入现有 transitioncrates/agent-gateway/web/src/index.css— WebUI 同步补上同一套开合动画.github/pr-assets/— 本 PR 预览帧,合并前可删Screenshots / preview
菜单关闭(加号按钮):
菜单打开(上传文件 / 文件夹 / 计划模式):
开合过渡与现有
.composer-safety-dropdown/.composer-branch-dropdown使用同一套 timing 与缓动,静态帧无法完整表达 180ms / 120ms 动画,请在 Desktop / WebUI 里点一次加号核对。Verification
.composer-add-dropdown与安全 / 分支菜单共享data-starting-style/data-ending-styletransition。data-statekeyframes。prefers-reduced-motion路径已包含加号菜单。Pre-submit checklist
Made with Cursor