notifications: fix hide/show
This commit is contained in:
parent
fa68eaf5de
commit
a929241724
2 changed files with 6 additions and 3 deletions
|
@ -178,12 +178,12 @@ class App.OnlineNotificationWidget extends App.Controller
|
||||||
return if !@access()
|
return if !@access()
|
||||||
$(window).on 'keydown.notifications', @listNavigate
|
$(window).on 'keydown.notifications', @listNavigate
|
||||||
@shown = true
|
@shown = true
|
||||||
@el.show()
|
@el.addClass 'is-visible'
|
||||||
|
|
||||||
hide: =>
|
hide: =>
|
||||||
$(window).off 'keydown.notifications'
|
$(window).off 'keydown.notifications'
|
||||||
@shown = false
|
@shown = false
|
||||||
@el.hide()
|
@el.removeClass 'is-visible'
|
||||||
|
|
||||||
stopPropagation: (e) ->
|
stopPropagation: (e) ->
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
|
|
|
@ -3715,10 +3715,13 @@ footer {
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
min-width: 350px;
|
min-width: 350px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@extend .zIndex-5;
|
@extend .zIndex-5;
|
||||||
|
|
||||||
|
&.is-visible {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
&.is-empty .popover-notificationsHeader {
|
&.is-empty .popover-notificationsHeader {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue