From 617986c055785a08be479ba53e363f596b65f0d4 Mon Sep 17 00:00:00 2001 From: freshavocado7 Date: Wed, 20 Mar 2024 16:36:14 +0100 Subject: [PATCH] Fix layout issues --- frontend/src/components/InstanceView.jsx | 2 +- frontend/src/components/Spinner.jsx | 2 +- frontend/src/components/TemplateView.jsx | 2 +- templates/diagrams.html.j2 | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/InstanceView.jsx b/frontend/src/components/InstanceView.jsx index a6dcba0..7a55c98 100644 --- a/frontend/src/components/InstanceView.jsx +++ b/frontend/src/components/InstanceView.jsx @@ -54,7 +54,7 @@ export const InstanceView = ({ templateName, objectID, endpoint }) => { return (
{details.map((item, idx) => { if (item.type === "SVGDisplay") { diff --git a/frontend/src/components/Spinner.jsx b/frontend/src/components/Spinner.jsx index d600601..97b4de6 100644 --- a/frontend/src/components/Spinner.jsx +++ b/frontend/src/components/Spinner.jsx @@ -2,6 +2,6 @@ import React from 'react'; export const Spinner = ({}) => (
-
+
); \ No newline at end of file diff --git a/frontend/src/components/TemplateView.jsx b/frontend/src/components/TemplateView.jsx index c004ff9..8fab4f2 100644 --- a/frontend/src/components/TemplateView.jsx +++ b/frontend/src/components/TemplateView.jsx @@ -36,7 +36,7 @@ export const TemplateView = ({endpoint}) => { {/* Main Content */}
-
{/* Ensure main content is scrollable and fills the height */} +
{/* Ensure main content is scrollable and fills the height */} { !!!objectID &&

Select an Instance

} { objectID && }
diff --git a/templates/diagrams.html.j2 b/templates/diagrams.html.j2 index f4a9175..bd7a2e8 100644 --- a/templates/diagrams.html.j2 +++ b/templates/diagrams.html.j2 @@ -13,7 +13,9 @@ {% if object.nodes %}
    {% for node in object.nodes %} +{% if node.name %}
  • {{ node.name }}
  • +{% endif %} {% endfor %}
{% else %}