Fix overriding of viewerbase style in LesionTracker. Add loading icon for worklist

This commit is contained in:
Erik Ziegler 2015-11-06 12:06:11 +01:00
parent e8bbf5e35e
commit 814e6f7741
7 changed files with 37 additions and 16 deletions

View File

@ -1,13 +0,0 @@
.viewer {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
background-color: black;
}
#viewportAndLesionTable {
height: 100%;
width: calc(100% - 120px);
float: right;
}

View File

@ -0,0 +1,18 @@
.viewer
width: 100%
height: 100%
margin: 0
padding: 0
background-color: black
#viewportAndLesionTable
height: 100%
width: calc(100% - 120px)
float: right
#imageViewerViewports
.viewportContainer
// Override the orange highlight in viewerbase
// for active viewports
&.active, &:hover.active
border: 2px solid #777

View File

@ -0,0 +1,5 @@
<template name="loadingText">
<div class="loadingTextDiv">
<h5>Loading... <i class="fa fa-spinner fa-pulse"></i></h5>
</div>
</template>

View File

@ -0,0 +1,4 @@
.loadingTextDiv
margin: 30px
h5
text-align: center

View File

@ -6,8 +6,8 @@
float: left
border: 2px solid #777
&.active
border: 2px solid #777
&.active, &:hover.active
border: 2px solid #9A6617
&:hover
border: 2px solid white

View File

@ -28,6 +28,9 @@ Package.onUse(function (api) {
api.addFiles('components/basic/login/login.html', 'client');
api.addFiles('components/basic/notFound/notFound.html', 'client');
api.addFiles('components/basic/loadingText/loadingText.html', 'client');
api.addFiles('components/basic/loadingText/loadingText.styl', 'client');
api.addFiles('components/basic/hidingPanel/hidingPanel.html', 'client');
api.addFiles('components/basic/hidingPanel/hidingPanel.js', 'client');
api.addFiles('components/basic/hidingPanel/hidingPanel.styl', 'client');

View File

@ -1,4 +1,5 @@
<template name="worklistResult">
{{ #if studies.count }}
<table id="tblStudyList" class="table table-striped">
<thead>
<tr>
@ -13,8 +14,11 @@
</thead>
<tbody id="studyListData">
{{#each studies}}
{{> worklistStudy }}
{{ >worklistStudy }}
{{/each}}
</tbody>
</table>
{{ else }}
{{ >loadingText }}
{{ /if }}
</template>