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/theme | |
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/theme')
-rw-r--r-- | view/theme/redbasic/js/redbasic.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index 4ad3665fe..0f2617cc0 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -55,6 +55,11 @@ $(document).ready(function() { } $('#css3-calc').remove(); // Remove the test element + if($(window).width() < 1200) { + $("#right_aside_wrapper").children().detach().appendTo('#left_aside_wrapper'); + $('#notifications_wrapper').addClass('d-none'); + } + if (document.querySelector('#region_1')) { stickyScroll('.aside_spacer_left', '.aside_spacer_top_left', 'section', parseFloat(document.querySelector('main').getBoundingClientRect().top), 20); |