Spaces:
Running
Running
Make edges easier to see in nested node groups.
Browse files
lynxkite-app/web/src/index.css
CHANGED
|
@@ -110,6 +110,10 @@ body {
|
|
| 110 |
padding: 10px 20px;
|
| 111 |
}
|
| 112 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
.node-group-color-picker-icon {
|
| 114 |
font-size: 30px;
|
| 115 |
opacity: 0.1;
|
|
|
|
| 110 |
padding: 10px 20px;
|
| 111 |
}
|
| 112 |
|
| 113 |
+
.node-group.in-group {
|
| 114 |
+
opacity: 0.5;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
.node-group-color-picker-icon {
|
| 118 |
font-size: 30px;
|
| 119 |
opacity: 0.1;
|
lynxkite-app/web/src/workspace/nodes/Group.tsx
CHANGED
|
@@ -24,12 +24,11 @@ export default function Group(props: any) {
|
|
| 24 |
const currentColor = props.data?.params?.color || "gray";
|
| 25 |
return (
|
| 26 |
<div
|
| 27 |
-
className=
|
| 28 |
style={{
|
| 29 |
width: props.width,
|
| 30 |
height: props.height,
|
| 31 |
backgroundColor: COLORS[currentColor],
|
| 32 |
-
opacity: 0.9,
|
| 33 |
}}
|
| 34 |
>
|
| 35 |
<button
|
|
|
|
| 24 |
const currentColor = props.data?.params?.color || "gray";
|
| 25 |
return (
|
| 26 |
<div
|
| 27 |
+
className={`node-group ${props.parentId ? "in-group" : ""}`}
|
| 28 |
style={{
|
| 29 |
width: props.width,
|
| 30 |
height: props.height,
|
| 31 |
backgroundColor: COLORS[currentColor],
|
|
|
|
| 32 |
}}
|
| 33 |
>
|
| 34 |
<button
|