File tree Expand file tree Collapse file tree 8 files changed +63
-12
lines changed Expand file tree Collapse file tree 8 files changed +63
-12
lines changed Original file line number Diff line number Diff line change 4
4
background : # 7f7f7f88 ;
5
5
border : 0.25rem solid # ffffff1a ;
6
6
border-radius : 0.75rem ;
7
- box-shadow : 0 0 2rem 1rem # 0000004d ;
8
7
font-size : 1rem ;
9
8
padding : 0.5rem ;
10
9
cursor : text;
Original file line number Diff line number Diff line change 1
1
.node-base-input {
2
2
grid-column : 1 / -1 ;
3
+ flex-basis : 100% ;
3
4
padding : 0.5rem 0.25rem ;
4
5
}
5
6
Original file line number Diff line number Diff line change 1
1
.decorative-node {
2
+ flex-basis : 100% ;
2
3
grid-column : 1 / -1 ;
3
4
margin-top : 0.5rem ;
4
5
display : flex;
Original file line number Diff line number Diff line change
1
+ import "./style.css" ;
2
+
3
+ export function FillerNode ( ) {
4
+ return ( < >
5
+ < div className = "filler-node-wrapper" >
6
+ < span className = "filler-node" />
7
+ </ div >
8
+ </ > ) ;
9
+ }
10
+
Original file line number Diff line number Diff line change
1
+ .filler-node-wrapper {
2
+ --size : 3rem ;
3
+ --icon-size : 1.5rem ;
4
+
5
+ position : relative;
6
+ width : var (--size );
7
+ height : 0 ;
8
+ }
9
+
10
+ .filler-node {
11
+ width : var (--size );
12
+ height : 0 ;
13
+ display : flex;
14
+ align-items : center;
15
+ justify-content : center;
16
+ pointer-events : none;
17
+ }
18
+
Original file line number Diff line number Diff line change 1
- .node {
1
+ .node-wrapper {
2
2
--size : 3rem ;
3
3
--icon-size : 1.5rem ;
4
4
5
+ position : relative;
6
+ width : var (--size );
7
+ height : var (--size );
8
+ }
9
+
10
+ .node {
5
11
width : var (--size );
6
12
height : var (--size );
7
13
display : flex;
95
101
display : none;
96
102
}
97
103
98
- .node-wrapper {
99
- position : relative;
100
- width : var (--size );
101
- height : var (--size );
102
- }
103
-
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { Glass } from "@components/commons/Glass";
5
5
import { Canvas } from "@components/engine/Canvas" ;
6
6
import { Node } from "@components/engine/Node" ;
7
7
import { Variants } from "@components/engine/Variants" ;
8
+ import { FillerNode } from "@components/engine/FillerNode" ;
8
9
9
10
import "./style.css" ;
10
11
@@ -38,13 +39,21 @@ export function NodeContext({
38
39
39
40
{
40
41
( ! isBase && showCanvas ) && ( < >
42
+ < span className = "context-break" />
41
43
< Glass className = "context-canvas" >
42
44
< Canvas baseId = { nodeId } />
43
45
</ Glass >
44
46
</ > )
45
47
}
46
48
47
49
< Variants node = { node } />
50
+ < div className = "context-length" >
51
+ < FillerNode />
52
+ < FillerNode />
53
+ < FillerNode />
54
+ < FillerNode />
55
+ < FillerNode />
56
+ </ div >
48
57
</ Glass >
49
58
</ > ) ;
50
- }
59
+ }
Original file line number Diff line number Diff line change 4
4
left : 50% ;
5
5
padding : 1rem ;
6
6
cursor : default;
7
- display : grid ;
8
- grid-template-columns : repeat ( 5 , 1 fr ) ;
7
+ display : flex ;
8
+ flex-wrap : wrap ;
9
9
gap : 0.5rem ;
10
10
transform : translateX (-50% ) translateY (-50% ) scale (0 );
11
11
opacity : 0 ;
33
33
34
34
.context-canvas {
35
35
grid-column : 1 / -1 ;
36
- margin-top : 0.5rem ;
36
+ flex-basis : 100% ;
37
+ }
38
+
39
+ .context-break {
40
+ flex-basis : 100% ;
41
+ height : 0 ;
42
+ }
43
+
44
+ .context-length {
45
+ flex-basis : 100% ;
46
+ height : 0 ;
47
+ display : flex;
48
+ gap : 0.5rem ;
49
+ margin-top : -20px ;
37
50
}
38
51
You can’t perform that action at this time.
0 commit comments