aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/cover_photo_widget.tpl
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-03-07 15:12:09 -0800
committerredmatrix <git@macgirvin.com>2016-03-07 15:12:09 -0800
commit1a77fb4c1d4348ed75ab220f73526294f13606a3 (patch)
tree381e9dfc784116447d54cd5c46f8ceb7b75b2e66 /view/tpl/cover_photo_widget.tpl
parent76467b5a35111c44ff539146ab0810118b42dc70 (diff)
parent6824fb9f935e1e2a5405571a08b4c1a3c43a7768 (diff)
downloadvolse-hubzilla-1a77fb4c1d4348ed75ab220f73526294f13606a3.tar.gz
volse-hubzilla-1a77fb4c1d4348ed75ab220f73526294f13606a3.tar.bz2
volse-hubzilla-1a77fb4c1d4348ed75ab220f73526294f13606a3.zip
Merge https://github.com/redmatrix/hubzilla into pending_merge
Diffstat (limited to 'view/tpl/cover_photo_widget.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();
}