diff --git a/analysis.py b/analysis.py index 48e656b..fb9a20d 100644 --- a/analysis.py +++ b/analysis.py @@ -84,6 +84,7 @@ class Params(BaseModel): def sociogram_image(params: Params): + plt.close() plt.figure(figsize=(16, 10), facecolor="none") ax = plt.gca() ax.set_facecolor("none") # Set the axis face color to none (transparent) diff --git a/src/Analysis.tsx b/src/Analysis.tsx index 064ca5c..1d1fb0f 100644 --- a/src/Analysis.tsx +++ b/src/Analysis.tsx @@ -24,7 +24,7 @@ export default function Analysis() { edgeWidth: 1, arrowSize: 20, fontSize: 10, - distance: 0.2, + distance: 2, }); const [showControlPanel, setShowControlPanel] = useState(false); const [loading, setLoading] = useState(false); @@ -52,9 +52,9 @@ export default function Analysis() { return (
-
+
diff --git a/src/App.css b/src/App.css index 59bafc3..3db1ba0 100644 --- a/src/App.css +++ b/src/App.css @@ -130,21 +130,16 @@ button { } #control-panel { - display: grid; + display: none; overflow: hidden; margin: auto; gap: 16px; grid-template-columns: repeat(3, 1fr); + transition: display 1s ease-out 0s; } -.opened { - max-height: 100vw; - transition: max-height 1s ease-in; -} - -.closed { - max-height: 0px; - transition: max-height 0.5s ease-out; +#control-panel.opened { + display: grid; } .control {