notifications: fix hide/show

This commit is contained in:
Felix Niklas 2016-04-15 11:34:50 +02:00
parent fa68eaf5de
commit a929241724
2 changed files with 6 additions and 3 deletions

View file

@ -178,12 +178,12 @@ class App.OnlineNotificationWidget extends App.Controller
return if !@access()
$(window).on 'keydown.notifications', @listNavigate
@shown = true
@el.show()
@el.addClass 'is-visible'
hide: =>
$(window).off 'keydown.notifications'
@shown = false
@el.hide()
@el.removeClass 'is-visible'
stopPropagation: (e) ->
e.stopPropagation()

View file

@ -3715,10 +3715,13 @@ footer {
max-width: 400px;
min-width: 350px;
position: absolute;
display: flex;
flex-direction: column;
@extend .zIndex-5;
&.is-visible {
display: flex;
}
&.is-empty .popover-notificationsHeader {
box-shadow: none;
}