LT-250: Creating drawer for toolbar 'more' button
This commit is contained in:
parent
c65e8861b0
commit
35711b057d
@ -1,8 +1,10 @@
|
|||||||
#viewer
|
#viewer
|
||||||
width: 100%
|
|
||||||
height: 100%
|
|
||||||
border-top: 1px solid #525252
|
border-top: 1px solid #525252
|
||||||
|
display: flex
|
||||||
|
flex-flow: row nowrap
|
||||||
|
height: 100%
|
||||||
|
width: 100%
|
||||||
|
|
||||||
.noselect
|
.noselect
|
||||||
-webkit-touch-callout: none
|
-webkit-touch-callout: none
|
||||||
-webkit-user-select: none
|
-webkit-user-select: none
|
||||||
@ -10,10 +12,10 @@
|
|||||||
-moz-user-select: none
|
-moz-user-select: none
|
||||||
-ms-user-select: none
|
-ms-user-select: none
|
||||||
user-select: none
|
user-select: none
|
||||||
|
|
||||||
.studyBrowser
|
.studyBrowser
|
||||||
width: auto
|
width: auto
|
||||||
|
|
||||||
.viewerMain
|
.viewerMain
|
||||||
float: left
|
float: left
|
||||||
background-color: gray
|
background-color: gray
|
||||||
@ -34,4 +36,4 @@
|
|||||||
width: 120px
|
width: 120px
|
||||||
overflow: hidden
|
overflow: hidden
|
||||||
background-color: #000
|
background-color: #000
|
||||||
padding-top: 10px
|
padding-top: 10px
|
||||||
|
|||||||
@ -25,6 +25,7 @@ $menuBackgroundColor = #F2F2F2
|
|||||||
// Sizes
|
// Sizes
|
||||||
$topBarHeight = 40px
|
$topBarHeight = 40px
|
||||||
$toolbarHeight = 78px
|
$toolbarHeight = 78px
|
||||||
|
$toolbarDrawerHeight = 62px
|
||||||
|
|
||||||
// Thicknesses
|
// Thicknesses
|
||||||
$uiBorderThickness = 1px
|
$uiBorderThickness = 1px
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
@import "{design}/app"
|
@import "{design}/app"
|
||||||
|
|
||||||
.viewerSection
|
.viewerSection
|
||||||
display: inline-flex
|
display: flex
|
||||||
flex-flow: row nowrap
|
flex-flow: row nowrap
|
||||||
align-items: stretch
|
align-items: stretch
|
||||||
height: 'calc(100% - %s)' % $toolbarHeight
|
height: 100%
|
||||||
width: 100%
|
width: 100%
|
||||||
|
|
||||||
.sidebarMenu
|
.sidebarMenu
|
||||||
@ -38,6 +38,7 @@
|
|||||||
order: 2
|
order: 2
|
||||||
width: 100%
|
width: 100%
|
||||||
height: 100%
|
height: 100%
|
||||||
|
overflow: hidden
|
||||||
transition($sidebarTransition)
|
transition($sidebarTransition)
|
||||||
|
|
||||||
.sidebar-right
|
.sidebar-right
|
||||||
|
|||||||
@ -4,8 +4,9 @@ $switchSize = 55px
|
|||||||
$seriesSpacing = 2px
|
$seriesSpacing = 2px
|
||||||
|
|
||||||
.quickSwitchWrapper
|
.quickSwitchWrapper
|
||||||
position: absolute
|
position: fixed
|
||||||
top: 0
|
top: 0
|
||||||
|
z-index: 1
|
||||||
|
|
||||||
&.middle
|
&.middle
|
||||||
left: 50%
|
left: 50%
|
||||||
|
|||||||
@ -5,9 +5,9 @@
|
|||||||
{{>roundedButtonGroup leftSidebarToggleButtonData}}
|
{{>roundedButtonGroup leftSidebarToggleButtonData}}
|
||||||
</div>
|
</div>
|
||||||
<div class="toolbarSectionTools pull-left m-t-1 rm-l-3">
|
<div class="toolbarSectionTools pull-left m-t-1 rm-l-3">
|
||||||
{{ #each toolbarButtons }}
|
{{#each toolbarButton in toolbarButtons}}
|
||||||
{{ >toolbarSectionButton }}
|
{{>toolbarSectionButton toolbarButton}}
|
||||||
{{ /each }}
|
{{/each}}
|
||||||
|
|
||||||
<div id="moreTools" class="toolbarSectionButton rp-x-1 rm-l-3">
|
<div id="moreTools" class="toolbarSectionButton rp-x-1 rm-l-3">
|
||||||
<div class="svgContainer">
|
<div class="svgContainer">
|
||||||
@ -19,6 +19,11 @@
|
|||||||
More <i class="fa fa-caret-down" aria-hidden="true"></i>
|
More <i class="fa fa-caret-down" aria-hidden="true"></i>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="toolbarSectionDrawerContainer">
|
||||||
|
<!-- TODO: [design] check which group of tools shall be shown -->
|
||||||
|
<div class="toolbarSectionDrawer">More tools coming soon</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if splitView}}
|
{{#if splitView}}
|
||||||
|
|||||||
@ -140,6 +140,12 @@ Template.toolbarSection.events({
|
|||||||
'click #toggleHUD': function(e) {
|
'click #toggleHUD': function(e) {
|
||||||
var lesionTableHUD = document.getElementById('lesionTableHUD');
|
var lesionTableHUD = document.getElementById('lesionTableHUD');
|
||||||
toggleDialog(lesionTableHUD);
|
toggleDialog(lesionTableHUD);
|
||||||
|
},
|
||||||
|
'click #moreTools'(event, instance) {
|
||||||
|
const $target = $(event.currentTarget);
|
||||||
|
const isActive = $target.hasClass('active');
|
||||||
|
$target.toggleClass('active', !isActive);
|
||||||
|
$target.closest('.toolbarSection').toggleClass('expanded', !isActive);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,49 @@
|
|||||||
@import "{design}/app"
|
@import "{design}/app"
|
||||||
|
|
||||||
.toolbarSection
|
.toolbarSection
|
||||||
height: $toolbarHeight
|
|
||||||
padding-top: 6px
|
|
||||||
width: 100%
|
|
||||||
border-bottom: $uiBorderColor $uiBorderThickness solid
|
border-bottom: $uiBorderColor $uiBorderThickness solid
|
||||||
|
height: $toolbarHeight
|
||||||
|
overflow: hidden
|
||||||
|
padding-top: 6px
|
||||||
|
position: relative
|
||||||
|
transition(height 300ms ease)
|
||||||
|
width: 100%
|
||||||
|
|
||||||
|
&.expanded
|
||||||
|
height: $toolbarHeight + $toolbarDrawerHeight
|
||||||
|
|
||||||
|
.toolbarSectionTools
|
||||||
|
position: relative
|
||||||
|
|
||||||
|
.toolbarSectionDrawerContainer
|
||||||
|
bottom: - ($toolbarDrawerHeight + 12px)
|
||||||
|
height: $toolbarDrawerHeight
|
||||||
|
left: 0
|
||||||
|
position: absolute
|
||||||
|
width: 100%
|
||||||
|
|
||||||
|
.toolbarSectionDrawer
|
||||||
|
background-color: $uiGrayDarkest
|
||||||
|
border-radius: 7px
|
||||||
|
color: $textPrimaryColor
|
||||||
|
content: ''
|
||||||
|
display: block
|
||||||
|
font-size: 18px
|
||||||
|
height: $toolbarDrawerHeight - 12px
|
||||||
|
line-height: $toolbarDrawerHeight - 12px
|
||||||
|
text-align: center
|
||||||
|
width: 100%
|
||||||
|
|
||||||
|
#moreTools
|
||||||
|
|
||||||
|
.buttonLabel i
|
||||||
|
text-align: center
|
||||||
|
transition(all 300ms ease)
|
||||||
|
width: 8px
|
||||||
|
|
||||||
|
&.active .buttonLabel i
|
||||||
|
transform(rotateX(180deg))
|
||||||
|
|
||||||
|
|
||||||
.toolbarSectionButton
|
.toolbarSectionButton
|
||||||
display: inline-block
|
display: inline-block
|
||||||
|
|||||||
@ -1,17 +1,18 @@
|
|||||||
<template name="viewer">
|
<template name="viewer">
|
||||||
{{#if Template.subscriptionsReady}}
|
{{#if Template.subscriptionsReady}}
|
||||||
<div id="viewer">
|
<div class="viewerDialogs">
|
||||||
{{ >confirmDeleteDialog }}
|
{{>confirmDeleteDialog}}
|
||||||
{{ >lesionLocationDialog }}
|
{{>lesionLocationDialog}}
|
||||||
{{ >nonTargetLesionDialog }}
|
{{>nonTargetLesionDialog}}
|
||||||
{{ >nonTargetResponseDialog }}
|
{{>nonTargetResponseDialog}}
|
||||||
{{ >lesionTableHUD }}
|
{{>lesionTableHUD}}
|
||||||
<!-- >conformanceCheckFeedback -->
|
{{! >conformanceCheckFeedback}}
|
||||||
|
</div>
|
||||||
{{ >toolbarSection }}
|
<div id="viewer">
|
||||||
{{ >flexboxLayout }}
|
{{>toolbarSection}}
|
||||||
</div>
|
{{>flexboxLayout}}
|
||||||
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{ >loadingText }}
|
{{>loadingText}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user