Batch Overlay

- center cancel area in empty space
This commit is contained in:
Felix Niklas 2017-02-21 09:58:55 +01:00
parent 925b6dab5a
commit 20236091de
2 changed files with 13 additions and 9 deletions

View file

@ -350,6 +350,10 @@ class App.TicketOverview extends App.Controller
return if !@batchOverlayShown # user might have dropped the item already
@batchAssignShown = true
@batchCancel.css
top: 0
bottom: @batchAssign.height()
@batchAssign.velocity
properties:
translateY: [0, '100%']
@ -360,10 +364,6 @@ class App.TicketOverview extends App.Controller
visibility: 'visible'
complete: @highlightBatchEntryAtMousePosition
@batchCancel.css
top: 0
bottom: 'auto'
@batchCancel.velocity
properties:
translateY: [0, '100%']
@ -452,6 +452,10 @@ class App.TicketOverview extends App.Controller
return if !@batchOverlayShown # user might have dropped the item already
@batchMacroShown = true
@batchCancel.css
bottom: 0
top: @batchMacro.height()
@batchMacro.velocity
properties:
translateY: [0, '-100%']
@ -462,9 +466,6 @@ class App.TicketOverview extends App.Controller
visibility: 'visible'
complete: @highlightBatchEntryAtMousePosition
@batchCancel.css
top: 'auto'
bottom: 0
@batchCancel.velocity
properties:
translateY: [0, '-100%']

View file

@ -8511,13 +8511,16 @@ output {
border: 2px dashed hsla(0,0%,100%,.3);
border-radius: 8px;
padding: 28px;
margin: 50px 200px;
margin: auto 200px;
position: absolute;
top: 0;
left: 0;
right: 0;
max-height: 100px;
visibility: hidden;
will-change: opacity;
display: flex;
justify-content: center;
align-items: center;
}
&-box {