aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-08-23 20:10:56 -0700
committerredmatrix <git@macgirvin.com>2016-08-23 20:10:56 -0700
commit206054678ba70fae851c40bf79871ad9a042ca2f (patch)
treef09b3bf6c582f112a1b451dc3b50faaab4f84834 /view/tpl
parenta5035dee74da87a529b2de938ce10bb8bb8d8346 (diff)
downloadvolse-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/tpl')
-rwxr-xr-xview/tpl/cover_photo_widget.tpl3
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');