Skip to content

Commit

Permalink
Change layout for workflow instance properties and graph, and fix Gru…
Browse files Browse the repository at this point in the history
…nt warnings
  • Loading branch information
eputtone committed Feb 5, 2021
1 parent c6a713b commit 39e5615
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 29 deletions.
4 changes: 2 additions & 2 deletions nflow-explorer/src/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

m.run(function (EndpointService, ExecutorService, $window, config) {
if (config.htmlTitle) {
$window.document.title = config.htmlTitle
};
$window.document.title = config.htmlTitle;
}
EndpointService.init();
ExecutorService.start();
});
Expand Down
23 changes: 18 additions & 5 deletions nflow-explorer/src/app/workflow/workflow.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,24 @@ <h2>
({{ctrl.workflow.id}})
</h2>
<blockquote ng-show="ctrl.definition.description">{{ctrl.definition.description}}</blockquote>
<workflow-info workflow="ctrl.workflow"
parent-workflow="ctrl.parentWorkflow"
child-workflows="ctrl.childWorkflows"
definition="ctrl.definition"></workflow-info>
<workflow-graph definition="ctrl.definition" workflow="ctrl.workflow"></workflow-graph>
<div ng-if="ctrl.definition.states.length > 15">
<workflow-info workflow="ctrl.workflow"
parent-workflow="ctrl.parentWorkflow"
child-workflows="ctrl.childWorkflows"
definition="ctrl.definition"></workflow-info>
<workflow-graph definition="ctrl.definition" workflow="ctrl.workflow"></workflow-graph>
</div>
<div class="row" ng-if="ctrl.definition.states.length <= 15">
<div class="col-lg-6">
<workflow-info workflow="ctrl.workflow"
parent-workflow="ctrl.parentWorkflow"
child-workflows="ctrl.childWorkflows"
definition="ctrl.definition"></workflow-info>
</div>
<div class="col-lg-6">
<workflow-graph definition="ctrl.definition" workflow="ctrl.workflow"></workflow-graph>
</div>
</div>
</div>
<div class="col-md-6">
<workflow-tabs definition="ctrl.definition" workflow="ctrl.workflow"
Expand Down
2 changes: 1 addition & 1 deletion nflow-explorer/src/app/workflow/workflowInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'nflowExplorer.workflow.graph',
]);

m.directive('workflowInfo', function(config) {
m.directive('workflowInfo', function() {
return {
restrict: 'E',
replace: true,
Expand Down
25 changes: 4 additions & 21 deletions nflow-explorer/src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,22 +111,15 @@ a {

/* for making svg images responsive */
.svg-container {
display: inline-block;
position: relative;
width: 100%;
vertical-align: middle;
overflow: hidden;
margin: 10px;
}

.svg-content {
display: inline-block;
position: absolute;
top: 0;
left: 0;
.svg-content-responsive {
width: 100%;
}

.highlight {
font-weight: bold;
font-weight: bold;
}

.vertical-align {
Expand Down Expand Up @@ -266,16 +259,6 @@ ul.listing {
cursor: pointer;
}

.svg-container {
width: 100%;
padding-top: 10px;
padding-bottom: 10px;
}

.svg-content-responsive {
width: 100%;
}

#workflow-properties tr:nth-child(even) {
background-color: #f2f2f2;
}
Expand Down

0 comments on commit 39e5615

Please sign in to comment.