Skip to content

fix(chat): 加号菜单补上与安全/分支菜单一致的开合动画 - #682

Merged
su-fen merged 2 commits into
mainfrom
fix/composer-add-dropdown-animation
Aug 30, 2026
Merged

fix(chat): 加号菜单补上与安全/分支菜单一致的开合动画#682
su-fen merged 2 commits into
mainfrom
fix/composer-add-dropdown-animation

Conversation

@su-fen

@su-fen su-fen commented Aug 30, 2026

Copy link
Copy Markdown
Member

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

  • Modules: agent-gui / agent-gateway web
  • Key paths:
    • crates/agent-gui/src/index.css — Desktop 加号菜单纳入现有 transition
    • crates/agent-gateway/web/src/index.css — WebUI 同步补上同一套开合动画
    • .github/pr-assets/ — 本 PR 预览帧,合并前可删

Screenshots / preview

菜单关闭(加号按钮):

composer add menu closed

菜单打开(上传文件 / 文件夹 / 计划模式):

composer add menu open

开合过渡与现有 .composer-safety-dropdown / .composer-branch-dropdown 使用同一套 timing 与缓动,静态帧无法完整表达 180ms / 120ms 动画,请在 Desktop / WebUI 里点一次加号核对。

Verification

  • 改动仅限 CSS 选择器并入,无 JS / 组件契约变化,未新增测试。
  • Desktop:.composer-add-dropdown 与安全 / 分支菜单共享 data-starting-style / data-ending-style transition。
  • WebUI:同一 class 同时覆盖 Base UI 生命周期属性与原有 data-state keyframes。
  • prefers-reduced-motion 路径已包含加号菜单。

Pre-submit checklist

  • A requirement issue is linked (or this is a trivial fix that needs no issue, as explained in the summary).
  • Synced with the target branch; no merge conflicts.
  • The change is focused, with no unrelated modifications.
  • No secrets, tokens, or personal data included.
  • Docs are updated for changes affecting user behavior, deployment, or configuration.

Made with Cursor

su-fen and others added 2 commits August 31, 2026 03:13
Closes #681

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@su-fen
su-fen merged commit c6365fd into main Aug 30, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] 提示词输入框加号菜单缺少与右侧按钮一致的开合动画

1 participant