Skip to content

Commit 94d14ba

Browse files
author
Mark Robinson
committed
Fix svg scaling and positioning on workflow page
1 parent 5b7543f commit 94d14ba

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

src/main/resources/static/css/main.css

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,14 @@ body {
6060
}
6161

6262
#visualisation {
63-
overflow: auto;
63+
overflow: hidden;
6464
padding: 0;
65+
height: 500px;
6566
}
6667

67-
#graph svg {
68+
#graph {
6869
width: 100%;
69-
}
70-
71-
#graph svg polygon {
72-
stroke-width: 0;
73-
}
74-
75-
#loading {
76-
width: 150px;
77-
margin: 0 auto;
70+
height: 100%;
7871
}
7972

8073
#download-gv {

src/main/resources/templates/workflow.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,9 @@ <h2>Workflow: <span th:text="${workflow.label}">Workflow Name</span></h2>
128128
<div class="row">
129129
<div class="col-md-12">
130130
<div id="visualisation" class="jumbotron">
131-
<div id="loading">
132-
<object id="graph" th:data="@{'/workflows/' + ${workflow.id} + '/graph/svg'}" type="image/svg+xml">
133-
<img th:src="@{'/workflows/' + ${workflow.id} + '/graph/png'}" alt="workflow graph" />
134-
</object>
135-
</div>
136-
<div id="graph"></div>
131+
<object id="graph" th:data="@{'/workflows/' + ${workflow.id} + '/graph/svg'}" type="image/svg+xml">
132+
<img th:src="@{'/workflows/' + ${workflow.id} + '/graph/png'}" alt="workflow graph" />
133+
</object>
137134
</div>
138135
<h2>Inputs</h2>
139136
<table class="table table-striped table-hover">

0 commit comments

Comments
 (0)