fix(ui): do not render dashed edges unless animation is enabled

This commit is contained in:
psychedelicious
2025-01-26 10:59:04 +11:00
parent d3c22eceaf
commit 4f9d81917c

View File

@@ -24,11 +24,11 @@ const baseEdgeSx: SystemStyleObject = {
'&[data-selected="true"]': {
opacity: '1 !important',
},
'&[data-selected="true"], &[data-are-connected-nodes-selected="true"]': {
strokeDasharray: '5 !important',
},
'&[data-should-animate-edges="true"]': {
animation: 'dashdraw 0.5s linear infinite !important',
'&[data-selected="true"], &[data-are-connected-nodes-selected="true"]': {
strokeDasharray: '5 !important',
},
},
};