From de387386ed7a1c790d395ca5b5e8cde64c6056d0 Mon Sep 17 00:00:00 2001 From: David Butenhof Date: Thu, 17 Oct 2024 15:57:43 -0400 Subject: [PATCH] A few tweaks Move the legend up off the graph (although 1.5 is arbitrary and maybe not ideal -- is there a more dynamic way to do this). Also, I fixed the name of a `.less` class earlier, but just happened to notice the corresponding use... --- frontend/src/actions/ilabActions.js | 2 +- frontend/src/components/templates/ILab/IlabCompareComponent.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/actions/ilabActions.js b/frontend/src/actions/ilabActions.js index 49c8088..6a07308 100644 --- a/frontend/src/actions/ilabActions.js +++ b/frontend/src/actions/ilabActions.js @@ -230,7 +230,7 @@ export const fetchMultiGraphData = (uids) => async (dispatch, getState) => { response.data.layout["showlegend"] = true; response.data.layout["responsive"] = "true"; response.data.layout["autosize"] = "true"; - response.data.layout["legend"] = { x: 0, y: 1 }; + response.data.layout["legend"] = { x: 0, y: 1.5 }; const graphData = []; graphData.push({ data: response.data.data, diff --git a/frontend/src/components/templates/ILab/IlabCompareComponent.jsx b/frontend/src/components/templates/ILab/IlabCompareComponent.jsx index 12fc1d8..161d39f 100644 --- a/frontend/src/components/templates/ILab/IlabCompareComponent.jsx +++ b/frontend/src/components/templates/ILab/IlabCompareComponent.jsx @@ -79,7 +79,7 @@ const IlabCompareComponent = () => { type={"ilab"} /> -
+
{isGraphLoading ? (
) : graphDataCopy?.length > 0 &&