aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-09-09 19:44:27 +0200
committerMario Vavti <mario@mariovavti.com>2018-09-09 19:44:27 +0200
commit677ad71b96640a76b6e857d9e3e509d70ad7a9ce (patch)
tree473f355c3e447ce96aba886aa15fc45ca3aa6f88 /view
parent9607bb29fd354245f915fcf8c2d109035dc52ede (diff)
downloadvolse-hubzilla-677ad71b96640a76b6e857d9e3e509d70ad7a9ce.tar.gz
volse-hubzilla-677ad71b96640a76b6e857d9e3e509d70ad7a9ce.tar.bz2
volse-hubzilla-677ad71b96640a76b6e857d9e3e509d70ad7a9ce.zip
fix some issues with latest notification improvements
Diffstat (limited to 'view')
-rw-r--r--view/php/default.php4
-rw-r--r--view/tpl/notifications_widget.tpl7
2 files changed, 7 insertions, 4 deletions
diff --git a/view/php/default.php b/view/php/default.php
index 70b8daecf..60f3f6a6f 100644
--- a/view/php/default.php
+++ b/view/php/default.php
@@ -10,12 +10,12 @@
<header><?php if(x($page,'header')) echo $page['header']; ?></header>
<nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark"><?php if(x($page,'nav')) echo $page['nav']; ?></nav>
<main>
- <aside id="region_1"><div id="left_aside_wrapper"><?php if(x($page,'aside')) echo $page['aside']; ?></div></aside>
+ <aside id="region_1"><div class="aside_spacer"><div id="left_aside_wrapper"><?php if(x($page,'aside')) echo $page['aside']; ?></div></div></aside>
<section id="region_2"><?php if(x($page,'content')) echo $page['content']; ?>
<div id="page-footer"></div>
<div id="pause"></div>
</section>
- <aside id="region_3" class="d-none d-xl-table-cell"><div id="right_aside_wrapper"><?php if(x($page,'right_aside')) echo $page['right_aside']; ?></div></aside>
+ <aside id="region_3" class="d-none d-xl-table-cell"><div class="aside_spacer"><div id="right_aside_wrapper"><?php if(x($page,'right_aside')) echo $page['right_aside']; ?></div></div></aside>
</main>
<footer><?php if(x($page,'footer')) echo $page['footer']; ?></footer>
</body>
diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl
index b37ef40da..9b3d7487e 100644
--- a/view/tpl/notifications_widget.tpl
+++ b/view/tpl/notifications_widget.tpl
@@ -7,11 +7,14 @@
$('.notifications-btn').click(function() {
if($('#notifications_wrapper').hasClass('fs')) {
$('#notifications_wrapper').prependTo('#' + notifications_parent);
- $('body').css('overflow', 'auto');
+ //undo scrollbar remove
+ $('section').css('height', '');
}
else {
$('#notifications_wrapper').prependTo('section');
- $('body').css('overflow', 'hidden');
+ //remove superfluous scrollbar
+ //setting overflow to hidden here has issues with some browsers
+ $('section').css('height', '100vh');
}
$('#notifications_wrapper').toggleClass('fs');