perf(ui): connection line issue on chrome

This commit is contained in:
psychedelicious
2025-02-15 20:44:04 +10:00
parent 436d5ee0c6
commit 8ecf9fb7e3

View File

@@ -25,6 +25,8 @@ const baseEdgeSx: SystemStyleObject = {
opacity: '1 !important',
},
'&[data-should-animate-edges="true"]': {
// This fixes an performance issue with the animation of connection edges on chrome. Seems to be a deep chrome bug.
strokeDashoffset: 'unset !important',
animation: 'dashdraw 0.5s linear infinite !important',
'&[data-selected="true"], &[data-are-connected-nodes-selected="true"]': {
strokeDasharray: '5 !important',