darabos commited on
Commit
3e1ec11
·
1 Parent(s): 4dc527b

Fix visualizations after 342bc0e.

Browse files
lynxkite-app/web/src/index.css CHANGED
@@ -82,6 +82,15 @@ body {
82
  box-shadow: 0px 5px 50px 0px rgba(0, 0, 0, 0.3);
83
  border-radius: 4px;
84
  background: white;
 
 
 
 
 
 
 
 
 
85
  }
86
 
87
  .expanded .lynxkite-node {
 
82
  box-shadow: 0px 5px 50px 0px rgba(0, 0, 0, 0.3);
83
  border-radius: 4px;
84
  background: white;
85
+ display: flex;
86
+ flex-direction: column;
87
+
88
+ .node-content {
89
+ flex: 1;
90
+ overflow: auto;
91
+ display: flex;
92
+ flex-direction: column;
93
+ }
94
  }
95
 
96
  .expanded .lynxkite-node {
lynxkite-app/web/src/workspace/nodes/LynxKiteNode.tsx CHANGED
@@ -83,7 +83,7 @@ function LynxKiteNodeComponent(props: LynxKiteNodeProps) {
83
  </p>
84
  }
85
  >
86
- {props.children}
87
  </ErrorBoundary>
88
  <NodeResizeControl
89
  minWidth={100}
 
83
  </p>
84
  }
85
  >
86
+ <div className="node-content">{props.children}</div>
87
  </ErrorBoundary>
88
  <NodeResizeControl
89
  minWidth={100}
lynxkite-app/web/src/workspace/nodes/NodeWithMolecule.tsx CHANGED
@@ -49,12 +49,6 @@ const NodeWithMolecule = (props: any) => {
49
  };
50
  }, [props.data?.display?.value]);
51
 
52
- const nodeStyle: CSSProperties = {
53
- display: "flex",
54
- flexDirection: "column",
55
- height: "100%",
56
- };
57
-
58
  const vizStyle: CSSProperties = {
59
  flex: 1,
60
  minHeight: "300px",
@@ -65,7 +59,7 @@ const NodeWithMolecule = (props: any) => {
65
  };
66
 
67
  return (
68
- <NodeWithParams nodeStyle={nodeStyle} collapsed {...props}>
69
  <div style={vizStyle} ref={containerRef} />
70
  </NodeWithParams>
71
  );
 
49
  };
50
  }, [props.data?.display?.value]);
51
 
 
 
 
 
 
 
52
  const vizStyle: CSSProperties = {
53
  flex: 1,
54
  minHeight: "300px",
 
59
  };
60
 
61
  return (
62
+ <NodeWithParams collapsed {...props}>
63
  <div style={vizStyle} ref={containerRef} />
64
  </NodeWithParams>
65
  );
lynxkite-app/web/src/workspace/nodes/NodeWithVisualization.tsx CHANGED
@@ -32,11 +32,9 @@ function NodeWithVisualization(props: any) {
32
  chartsInstanceRef.current?.dispose();
33
  };
34
  }, [props.data?.display?.value]);
35
- const nodeStyle = { display: "flex", flexDirection: "column" };
36
- const vizStyle = { flex: 1 };
37
  return (
38
- <NodeWithParams nodeStyle={nodeStyle} collapsed {...props}>
39
- <div style={vizStyle} ref={chartsRef} />
40
  </NodeWithParams>
41
  );
42
  }
 
32
  chartsInstanceRef.current?.dispose();
33
  };
34
  }, [props.data?.display?.value]);
 
 
35
  return (
36
+ <NodeWithParams collapsed {...props}>
37
+ <div style={{ flex: 1 }} ref={chartsRef} />
38
  </NodeWithParams>
39
  );
40
  }