File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
src/components/engine/DecorativeNode Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1
1
import type { NodeModel } from "@defs/Node"
2
2
3
+ import { DynamicIcon } from "@components/commons/DynamicIcon" ;
4
+
3
5
import "./style.css" ;
4
6
5
7
export function DecorativeNode ( {
@@ -8,7 +10,8 @@ export function DecorativeNode({
8
10
node : NodeModel ;
9
11
} ) {
10
12
return ( < >
11
- < div className = "decorative-node" >
13
+ < div className = "decorative-node" style = { { color : node . color } } >
14
+ < DynamicIcon className = "decorative-node-icon" icon = { node . icon } />
12
15
< span className = "decorative-node-name" > { node . name } </ span >
13
16
</ div >
14
17
</ > ) ;
Original file line number Diff line number Diff line change 1
1
.decorative-node {
2
2
grid-column : 1 / -1 ;
3
3
margin-top : 0.5rem ;
4
+ display : flex;
5
+ align-items : center;
6
+ justify-content : start;
7
+ gap : 0.25rem ;
8
+ background-color : currentColor;
9
+ border-radius : 0.25rem ;
4
10
}
5
11
6
12
.decorative-node : first-child {
7
13
margin-top : 0 ;
8
14
}
9
15
16
+ .decorative-node-icon {
17
+ height : 100% ;
18
+ padding : 0.25rem ;
19
+ }
20
+
You can’t perform that action at this time.
0 commit comments