style: moved inline styles to VisProgUI.module.css and used some existing classes to replace simple css

ref: N25B-114
This commit is contained in:
JGerla
2025-10-22 12:31:04 +02:00
parent e880e00b6d
commit b365a8754e
2 changed files with 19 additions and 18 deletions

View File

@@ -141,27 +141,11 @@ export function DndToolbar() {
);
return (
<div style={{
padding: '10px 10px',
outline: '2.5pt solid black',
borderRadius: '0pt 0pt 5pt 5pt',
borderColor: 'dimgrey',
backgroundColor: 'canvas',
display: 'flex',
alignItems: 'center',
flexDirection: 'column',
gap: '1rem'
}}>
<div className={`flex-col gap-lg padding-md ${styles.innerDndPanel}`}>
<div className="description">
You can drag these nodes to the pane to create new nodes.
</div>
<div className="DraggableNodeContainer" style={{
backgroundColor: 'canvas',
display: 'flex',
flexDirection: 'row',
gap: '1rem',
justifyContent: 'center'
}}>
<div className={`flex-row gap-lg ${styles.dndNodeContainer}`}>
<DraggableNode className={styles.draggableNodePhase} nodeType="phase" onDrop={handleNodeDrop}>
phase Node
</DraggableNode>