aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-03-07 21:47:52 +0100
committerMario Vavti <mario@mariovavti.com>2016-03-07 21:47:52 +0100
commitb2216f82036e9ea6baab6db68899e4bafa732d65 (patch)
tree4826f311f84cca364601ca923f0f967ff93ab936 /view/tpl
parentda3f1326e024f42e775132df96411da4d1b6705d (diff)
downloadvolse-hubzilla-b2216f82036e9ea6baab6db68899e4bafa732d65.tar.gz
volse-hubzilla-b2216f82036e9ea6baab6db68899e4bafa732d65.tar.bz2
volse-hubzilla-b2216f82036e9ea6baab6db68899e4bafa732d65.zip
prevent page jumping if the narrow navbar setting is used
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/cover_photo_widget.tpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/view/tpl/cover_photo_widget.tpl b/view/tpl/cover_photo_widget.tpl
index f5790d141..8254fc87d 100755
--- a/view/tpl/cover_photo_widget.tpl
+++ b/view/tpl/cover_photo_widget.tpl
@@ -15,7 +15,7 @@
if($('#cover-photo').length && $(window).width() > 755 && $(window).scrollTop() >= $('#cover-photo').height()) {
$('header').fadeIn();
$('main').css('opacity', 1);
- $('aside, section').css('padding-top', 71 + 'px');
+ $('aside, section').css('padding-top', $('nav').outerHeight(true) + 'px');
$(window).scrollTop($(window).scrollTop() - $('#cover-photo').height())
$('.navbar-fixed-top').css('position', 'fixed');
$('#cover-photo').remove();
@@ -28,7 +28,7 @@
$(window).resize(function () {
if($('#cover-photo').length && $(window).width() < 755) {
$('main').css('opacity', 1);
- $('aside, section').css('padding-top', 71 + 'px');
+ $('aside, section').css('padding-top', $('nav').outerHeight(true) + 'px');
$('.navbar-fixed-top').css('position', 'fixed');
$('#cover-photo').remove();
}