You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix pin button hover flickering when node layout shifts
When hovering the pin button to preview probability root, the node
shows 100% probability (3 digits instead of 2), which can widen the
probability badge, cause text wrapping, and make the node taller.
This pushes the pin button upward, and if the cursor is at the
button's bottom edge, it moves away causing hover to end, which
reverts the layout, creating an infinite flashing loop.
Solution: Add a conditional extended hover zone that activates only
during hover. When isPinHovered is true, a 10px transparent padding
zone extends below the button, keeping the cursor within the hover
area even when the button shifts upward.
Changes:
- Add isPinHovered state to track pin button hover
- Wrap both pin button instances in divs with conditional padding
- Move hover handlers to wrapper divs to control extended zone
- Update button background to stay orange during hover
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments