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

@@ -17,6 +17,10 @@
height: 100%;
}
.dnd-panel {
margin-inline-start: auto;
margin-inline-end: auto;
@@ -28,6 +32,19 @@
height:7%;
}
.inner-dnd-panel {
outline: 2.5pt solid black;
border-radius: 0 0 5pt 5pt;
border-color: dimgrey;
background-color: canvas;
align-items: center;
}
.dnd-node-container {
background-color: canvas;
justify-content: center;
}
/* Node Styles */
.default-node {

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>