Skip to content

Commit

Permalink
Merge pull request #23 from yohamta/fix-graph
Browse files Browse the repository at this point in the history
Fix too small graph for a little DAG
  • Loading branch information
yohamta authored Apr 28, 2022
2 parents 86cca5a + 8b388d5 commit 5c8d546
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/admin/handlers/web/templates/dag.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@
function ConfigTab({ data }) {
const mermaidStyle = {
display: 'flex', alignItems: 'center', justifyContent: 'center',
width: (data.DAG.Config.Steps.length * 100) + "px"
width: (data.DAG.Config.Steps.length * 100) + "px",
minWidth: "100%",
minHeight: "100px",
};
const handlers = getHandlersFromConfig(data.DAG.Config);
return (
Expand All @@ -257,7 +259,9 @@
display: 'flex',
alignItems: 'flex-start',
justifyContent: 'flex-start',
width: (data.DAG.Status.Nodes.length * 100) + "px"
width: (data.DAG.Status.Nodes.length * 100) + "px",
minWidth: "100%",
minHeight: "100px",
};
const handlers = getHandlersFromStatus(data.DAG.Status);
return (
Expand Down

0 comments on commit 5c8d546

Please sign in to comment.