dragon-graph-lib 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,11 +17,18 @@
17
17
  --dgl-connection-color: #a6aeb4;
18
18
  }
19
19
 
20
- .dgl-container {
20
+ .dgl-editor {
21
21
  background-color: var(--dgl-area-background);
22
22
  border: 1px solid var(--dgl-area-border);
23
23
  border-radius: 3px;
24
24
  position: relative;
25
+ margin: 1em 0;
26
+ overflow: hidden;
27
+ }
28
+
29
+ .dgl-editor:focus, .dgl-editor:focus-within {
30
+ border-color: var(--dgl-node-selected);
31
+ outline: none;
25
32
  }
26
33
 
27
34
  .dgl-area {
@@ -44,7 +51,7 @@
44
51
  width: fit-content;
45
52
  display: flex;
46
53
  flex-flow: column;
47
- gap: 12px;
54
+ gap: var(--dgl-node-padding);
48
55
  cursor: pointer;
49
56
  user-select: none;
50
57
  border: 1px solid var(--dgl-node-text);
@@ -74,6 +81,10 @@
74
81
  fill: none;
75
82
  }
76
83
 
84
+ .dgl-preview {
85
+ max-width: 20ch;
86
+ }
87
+
77
88
  .dgl-title {
78
89
  font-weight: bold;
79
90
  border-bottom: 1px solid var(--dgl-node-text);
@@ -81,6 +92,7 @@
81
92
  padding: var(--dgl-node-padding);
82
93
  margin: calc(-1 * var(--dgl-node-padding));
83
94
  margin-bottom: 0;
95
+ border-radius: var(--dgl-node-border-radius) var(--dgl-node-border-radius) 0 0;
84
96
  }
85
97
 
86
98
  .dgl-input, .dgl-output {
@@ -89,6 +101,10 @@
89
101
  position: relative;
90
102
  }
91
103
 
104
+ .dgl-input-label {
105
+ margin-right: var(--dgl-node-padding);
106
+ }
107
+
92
108
  .dgl-output {
93
109
  justify-content: end;
94
110
  left: calc(var(--dgl-node-padding) + var(--dgl-socket-size) / 2);