diff options
author | redmatrix <git@macgirvin.com> | 2016-08-23 20:10:56 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-08-23 20:10:56 -0700 |
commit | 206054678ba70fae851c40bf79871ad9a042ca2f (patch) | |
tree | f09b3bf6c582f112a1b451dc3b50faaab4f84834 /view | |
parent | a5035dee74da87a529b2de938ce10bb8bb8d8346 (diff) | |
download | volse-hubzilla-206054678ba70fae851c40bf79871ad9a042ca2f.tar.gz volse-hubzilla-206054678ba70fae851c40bf79871ad9a042ca2f.tar.bz2 volse-hubzilla-206054678ba70fae851c40bf79871ad9a042ca2f.zip |
cover photo: adjustments to display the entire photo on manual scrollback (padding added for nav height)
Diffstat (limited to 'view')
-rwxr-xr-x | view/tpl/cover_photo_widget.tpl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/view/tpl/cover_photo_widget.tpl b/view/tpl/cover_photo_widget.tpl index 4dfaf415b..91f304ccb 100755 --- a/view/tpl/cover_photo_widget.tpl +++ b/view/tpl/cover_photo_widget.tpl @@ -29,6 +29,7 @@ $('main').css('opacity', 1); $('aside').css('padding-top', aside_padding_top + 'px'); $('section').css('padding-top', section_padding_top + 'px'); + $('#cover-photo').css('padding-top', $('nav').outerHeight()); $(window).scrollTop($(window).scrollTop() - $('#cover-photo').height()) $('.navbar-fixed-top').css({ 'position' : 'fixed', 'top' : 0}); $('main').css('margin-top', ''); @@ -54,7 +55,7 @@ if(coverSlid) return; $('html, body').animate({scrollTop: Math.ceil($('#cover-photo').height()) + 'px' }); - $('#cover-photo').css({ 'position' : 'relative' , 'top' : 0 }); + $('#cover-photo').css({ 'position' : 'relative' , 'top' : $('nav').outerHeight() }); $('.navbar-fixed-top').css({ 'position' : 'fixed', 'top' : 0}); $('aside').css('padding-top', aside_padding_top + 'px'); $('section').css('padding-top', section_padding_top + 'px'); |