-
fix(generation): keep diagram node position off the hover transform (#1339)
发布于
2026-09-02 07:54:25 +00:00 | 44 次提交 在此版本后已推送到 main- fix(generation): keep diagram node position off the hover transform
A CSS
transformoverrides the SVGtransformpresentation attribute, so a
generated.node:hover { transform: ... }rule wipes out thetranslate()
that positions the node and snaps it toward the origin while hovered. The
diagram prompt only asked to "avoid hover transform conflicts", which was too
vague to prevent this.Spell out the contract instead: the outer
<g>carries positioning only, and
hover/active animations apply to an inner group.Refs #1300
Co-authored-by: Cursor cursoragent@cursor.com
- chore(generation): bump package version to 0.3.4
Co-authored-by: Cursor cursoragent@cursor.com
Co-authored-by: wyuc wang-yc24@mails.tsinghua.edu.cn下载附件