明白了,问题是 onPointerEnter 触发 setOpen(true) 后,DropdownMenu 打开导致按钮的 hover 状态被清除(可能是因为 Radix 的 Portal 或焦点管理)。我来改用 data-hover 属性手动控制 hover 样式:
已修复 hover 效果问题。改用 isHovering 状态来手动控制按钮的 bg-accent 样式,而不是依赖 CSS :hover 伪类。这样即使 DropdownMenu 打开后影响了原生 hover 状态,按钮的背景色也能正确显示。同时移除了之前添加的调试日志。
我希望 这个新功能的弹窗 进行更改,之前的功能弹窗需要留下备份
Faster chart generation
We’ve reduced average generation time by ~40%, improving responsiveness for both simple flows and complex multi-node diagrams.
Clearer reasoning & output structure
Improved the readability of model reasoning and responses, making generated results easier to understand and follow.
New Artifacts panel
Each session now includes an artifacts list, allowing you to view, track, and manage generated outputs more efficiently.
Bug fixes & stability improvements
Fixed rendering and display issues affecting charts and diagrams inside reports for a more stable experience.
这些是本次更新的内容。 可以进行设计,需要美观一些
现在我来备份原有组件并创建一个全新设计的更新日志弹窗:
现在我来创建一个全新设计的更新日志弹窗:
现在更新 page.tsx 来展示新的弹窗组件:
已完成新功能弹窗的设计:
layout-feature-dialog.backup.tsx新弹窗设计特点:
现在可以在页面底部点击"查看最新更新"按钮预览新的弹窗效果。