LT-242: Creating UI resizable, improving heads up display layout and fixing tool selection behavior

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2016-07-22 11:12:04 +02:00
1 parent 40062e2e9d
commit 9beee70081
22 files changed
+515 -270

No files matched your search

@@ -1,13 +1,16 @@
<template name="lesionTableHUD">
<div id="lesionTableHUD">
<div id="lesionTableHUD" class="{{hudHidden}}">
<div class="header">
Measurements
<span>Measurements</span>
<svg class="buttonClose">
<use xlink:href="/packages/lesiontracker/assets/icons.svg#icon-ui-close"></use>
</svg>
</div>
{{ >lesionTableView }}
{{>lesionTableView}}
<div class="footer">
{{ #each toolbarButtons }}
{{ >toolbarSectionButton }}
{{ /each }}
{{#each toolbarButton in toolbarButtons}}
{{>toolbarSectionButton toolbarButton}}
{{/each}}
</div>
</div>
</template>
</template>
@@ -1,4 +1,18 @@
Template.lesionTableHUD.onRendered(() => {
const instance = Template.instance();
instance.$('#lesionTableHUD').resizable().draggable();
});
Template.lesionTableHUD.events({
'click .buttonClose'(event, instance) {
Session.set('lesionTableHudOpen', false);
}
});
Template.lesionTableHUD.helpers({
hudHidden() {
return Session.get('lesionTableHudOpen') ? '' : 'hidden';
},
toolbarButtons() {
var buttonData = [];
@@ -26,8 +40,3 @@ Template.lesionTableHUD.helpers({
return buttonData;
}
});
Template.lesionTableHUD.onRendered(function() {
var dialog = $('#lesionTableHUD');
dialog.draggable();
});
@@ -1,34 +1,47 @@
@import "{design}/app"
$borderColor = rgba(77, 99, 110, 0.81)
$backgroundColor = #14191e
#lesionTableHUD
display: none
position: absolute
top: auto
left: auto
bottom: 3px
right: 3px
z-index: 10000
width: 318px
height: 326px
opacity: 0.95
background: black
border-radius: 8px
border: solid 1px $borderColor;
bottom: 3px
height: 326px
left: auto
opacity: 0.95
overflow: hidden
position: absolute
right: 3px
top: auto
width: 318px
z-index: 10000
.lesionTableView.scrollArea
margin-left: 0
padding-left: 0
.header
width: 100%
background: $uiGrayDarkest
border-bottom: $uiBorderThickness solid $borderColor
color: $textSecondaryColor
font-weight: 300
font-size: 20px
height: 55px
line-height: 55px
background: $backgroundColor
border-bottom: $uiBorderThickness solid $borderColor
position: relative
text-align: center
font-weight: 200
font-size: 20px
color: $textSecondaryColor
width: 100%
svg.buttonClose
color: $defaultColor
cursor: pointer
height: 14px
position: absolute
right: 14px
stroke: $defaultColor
top: 20px
width: 14px
.lesionTableView.scrollArea
height: calc(100% - 55px - 70px)
@@ -39,7 +52,7 @@ $backgroundColor = #14191e
height: 70px
position: absolute
bottom: 0
background: $backgroundColor
background: $uiGrayDarkest
border-top: $uiBorderThickness solid $borderColor
padding: 10px