feat(canvas): enhance group node functionality with improved click and drag behavior

This commit is contained in:
HouYunFei
2026-07-09 13:31:13 +08:00
parent ec0e8c4e24
commit 387d8be961
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -276,7 +276,7 @@ export const CanvasNode = React.memo(function CanvasNode({
return (
<div
data-node-id={data.id}
className={`node-element absolute flex select-none flex-col transition-shadow duration-200 ${isSelected ? "z-50" : isGroup ? "z-[5]" : "z-10"}`}
className={`node-element absolute flex select-none flex-col transition-shadow duration-200 ${isGroup ? "z-[5]" : isSelected ? "z-50" : "z-10"}`}
style={{
transform: `translate(${data.position.x}px, ${data.position.y}px)`,
width: data.width,