diff options
Diffstat (limited to 'view/tpl')
-rw-r--r-- | view/tpl/cover_photo_widget.tpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/view/tpl/cover_photo_widget.tpl b/view/tpl/cover_photo_widget.tpl index e26bd607f..306dfe0b5 100644 --- a/view/tpl/cover_photo_widget.tpl +++ b/view/tpl/cover_photo_widget.tpl @@ -18,7 +18,7 @@ // Otherwise, set up the cover photo's size coverPhoto.classList.remove('d-none'); - coverHeight = Math.ceil(window.innerWidth / 2.75862069); + coverHeight = Math.round(window.innerWidth / 2.75862069); coverPhoto.style.height = `${coverHeight}px`; datasrc2src('#cover-photo > img'); @@ -50,7 +50,7 @@ window.addEventListener('resize', function() { if (!coverPhoto) return; - coverHeight = Math.ceil(window.innerWidth / 2.75862069); + coverHeight = Math.round(window.innerWidth / 2.75862069); coverPhoto.style.height = `${coverHeight}px`; if (window.innerWidth < 755) { |