Squatting the series information to a single line if there is no series description to display
This commit is contained in:
parent
d6dd104cba
commit
dd26196cb5
@ -17,6 +17,10 @@
|
|||||||
transition($sidebarTransition)
|
transition($sidebarTransition)
|
||||||
width: 217px
|
width: 217px
|
||||||
|
|
||||||
|
-moz-background-clip: padding
|
||||||
|
-webkit-background-clip: padding
|
||||||
|
background-clip: padding-box
|
||||||
|
|
||||||
.imageThumbnailClone
|
.imageThumbnailClone
|
||||||
margin: 0 !important
|
margin: 0 !important
|
||||||
|
|
||||||
|
|||||||
@ -1,24 +1,30 @@
|
|||||||
<template name="thumbnailEntry">
|
<template name="thumbnailEntry">
|
||||||
<div class="thumbnailEntry noselect m-t-1 m-b-2 {{draggableClass}} {{#if isDisplaySetActive this.thumbnail.stack.displaySetInstanceUid viewportIndex}}active{{/if}}">
|
{{#let stack=this.thumbnail.stack}}
|
||||||
<div class="p-x-1">
|
<div class="thumbnailEntry noselect m-t-1 m-b-2 {{draggableClass}} {{#if isDisplaySetActive stack.displaySetInstanceUid viewportIndex}}active{{/if}}">
|
||||||
{{>imageThumbnail (clone this)}}
|
<div class="p-x-1">
|
||||||
</div>
|
{{>imageThumbnail (clone this)}}
|
||||||
<div class="seriesDetails clearfix m-x-1">
|
|
||||||
<div class="seriesDescription">
|
|
||||||
{{this.thumbnail.stack.seriesDescription}}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="seriesInformation">
|
<div class="seriesDetails clearfix m-x-1 {{#unless stack.seriesDescription}}info-only{{/unless}}">
|
||||||
<div class="seriesInformationNumbers">
|
<div class="seriesDescription">
|
||||||
<div>{{this.thumbnail.stack.seriesNumber}}</div>
|
{{stack.seriesDescription}}
|
||||||
{{#unless isUndefined instanceNumber}}<div>{{instanceNumber}}</div>{{/unless}}
|
|
||||||
<div>{{this.thumbnail.stack.numImageFrames}}</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="seriesInformationIcons">
|
<div class="seriesInformation">
|
||||||
<strong>S:</strong>
|
<div class="item item-series clearfix">
|
||||||
{{#unless isUndefined instanceNumber}}<strong>I:</strong>{{/unless}}
|
<div class="icon">S:</div>
|
||||||
<div></div>
|
<div class="value">{{stack.seriesNumber}}</div>
|
||||||
|
</div>
|
||||||
|
{{#unless isUndefined instanceNumber}}
|
||||||
|
<div class="item item-series clearfix">
|
||||||
|
<div class="icon">I:</div>
|
||||||
|
<div class="value">{{instanceNumber}}</div>
|
||||||
|
</div>
|
||||||
|
{{/unless}}
|
||||||
|
<div class="item item-frames clearfix">
|
||||||
|
<div class="icon"><div></div></div>
|
||||||
|
<div class="value">{{stack.numImageFrames}}</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{{/let}}
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -16,37 +16,66 @@ $seriesCountBackgroundColor = #678696
|
|||||||
color: $textPrimaryColor
|
color: $textPrimaryColor
|
||||||
font-size: 14px
|
font-size: 14px
|
||||||
line-height: 1.3em
|
line-height: 1.3em
|
||||||
|
margin-top: 5px
|
||||||
|
max-width: 217px
|
||||||
min-height: 36px
|
min-height: 36px
|
||||||
position: relative
|
position: relative
|
||||||
word-wrap: break-word
|
word-wrap: break-word
|
||||||
|
|
||||||
|
&.info-only
|
||||||
|
min-height: auto
|
||||||
|
|
||||||
|
.seriesDescription
|
||||||
|
display: none
|
||||||
|
|
||||||
|
.seriesInformation
|
||||||
|
display: flex
|
||||||
|
float: none
|
||||||
|
max-width: none
|
||||||
|
padding-right: none
|
||||||
|
|
||||||
|
.item
|
||||||
|
flex: 1
|
||||||
|
text-align: center
|
||||||
|
|
||||||
|
.icon, .value
|
||||||
|
display: inline
|
||||||
|
float: none
|
||||||
|
line-height: 25px
|
||||||
|
|
||||||
|
.value
|
||||||
|
margin-left: 0
|
||||||
|
width: auto
|
||||||
|
|
||||||
.seriesDescription
|
.seriesDescription
|
||||||
float: left
|
float: left
|
||||||
margin-right: 54px
|
|
||||||
width: calc(100% - 50px)
|
width: calc(100% - 50px)
|
||||||
|
|
||||||
.seriesInformation
|
.seriesInformation
|
||||||
|
display: table
|
||||||
float: right
|
float: right
|
||||||
width: 50px
|
padding-right: 4px
|
||||||
|
max-width: 50px
|
||||||
|
|
||||||
.seriesInformationNumbers
|
.item-frames .icon
|
||||||
.seriesInformationIcons
|
height: 18px
|
||||||
margin-right: 4px
|
|
||||||
|
|
||||||
.seriesInformationNumbers
|
.value
|
||||||
color: $textSecondaryColor
|
color: $textSecondaryColor
|
||||||
|
display: inline-block
|
||||||
float: right
|
float: right
|
||||||
font-size: 12px
|
font-size: 12px
|
||||||
|
margin-left: 4px
|
||||||
|
width: calc(100% - 15px)
|
||||||
|
|
||||||
.seriesInformationIcons
|
.icon
|
||||||
float: right
|
color: $activeColor
|
||||||
|
display: inline-block
|
||||||
|
float: left
|
||||||
|
font-size: 10px
|
||||||
|
font-weight: 900
|
||||||
text-align: right
|
text-align: right
|
||||||
|
width: 11px
|
||||||
strong
|
|
||||||
color: $activeColor
|
|
||||||
display: block
|
|
||||||
font-size: 10px
|
|
||||||
font-weight: 900
|
|
||||||
|
|
||||||
div
|
div
|
||||||
background-color: $seriesCountBackgroundColor
|
background-color: $seriesCountBackgroundColor
|
||||||
@ -64,6 +93,6 @@ $seriesCountBackgroundColor = #678696
|
|||||||
&:after
|
&:after
|
||||||
border: 1px solid $primaryBackgroundColor
|
border: 1px solid $primaryBackgroundColor
|
||||||
content: ''
|
content: ''
|
||||||
display: block
|
display: inline-block
|
||||||
height: 11px
|
height: 11px
|
||||||
width: 11px
|
width: 11px
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user