diff options
author | Mario Vavti <mario@mariovavti.com> | 2023-10-04 21:00:00 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2023-10-04 21:00:00 +0200 |
commit | 5265c774ae5917b5200510e668f8182eb07af750 (patch) | |
tree | 2933ae33ade766685f103835b2527594a18ae4c1 /view/tpl | |
parent | d1421d720c3f8ae9a7c409423fcbea4ff8132676 (diff) | |
download | volse-hubzilla-5265c774ae5917b5200510e668f8182eb07af750.tar.gz volse-hubzilla-5265c774ae5917b5200510e668f8182eb07af750.tar.bz2 volse-hubzilla-5265c774ae5917b5200510e668f8182eb07af750.zip |
move right aside into bottom of left aside if screen width is < 1200px
Diffstat (limited to 'view/tpl')
-rw-r--r-- | view/tpl/notifications_widget.tpl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index b4b0c02ef..15b29490b 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -13,11 +13,15 @@ } $('.notifications-btn').click(function() { + $('#notifications_wrapper').removeClass('d-none'); + if($('#notifications_wrapper').hasClass('fs')) { $('#notifications_wrapper').prependTo('#' + notifications_parent); + $('#notifications_wrapper').addClass('d-none'); + } else { - $('#notifications_wrapper').prependTo('section'); + $('#notifications_wrapper').prependTo('main'); } $('#notifications_wrapper').toggleClass('fs'); @@ -27,6 +31,7 @@ }); $(document).on('click', '.notification', function() { + $('#notifications_wrapper').addClass('d-none'); if($('#notifications_wrapper').hasClass('fs')) { $('#notifications_wrapper').prependTo('#' + notifications_parent).removeClass('fs'); } |