From 5265c774ae5917b5200510e668f8182eb07af750 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 4 Oct 2023 21:00:00 +0200 Subject: move right aside into bottom of left aside if screen width is < 1200px --- view/tpl/notifications_widget.tpl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'view/tpl') 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'); } -- cgit v1.2.3