feat: Add BlockComponent to render interactive simulation dashboard blocks with element management and resizing.
This commit is contained in:
@@ -78,6 +78,11 @@ const BlockComponent: React.FC<BlockComponentProps> = ({
|
||||
zIndex: block.zIndex || 1,
|
||||
cursor: isDraggable ? "move" : "pointer",
|
||||
}}
|
||||
onMouseDown={(e) => {
|
||||
if (isDraggable) {
|
||||
handleBlockDragStart(block.blockUuid, e);
|
||||
}
|
||||
}}
|
||||
onClick={handleMouseDown}
|
||||
>
|
||||
{/* Add Element Button */}
|
||||
|
||||
Reference in New Issue
Block a user