From a38284f2ae8b1a758b35638b75677907820db6af Mon Sep 17 00:00:00 2001 From: Joe Uhren Date: Sun, 18 Sep 2022 17:00:17 -0600 Subject: [PATCH] Fix footer width calculations -The footer was being resized at the wrong width breakpoints because of an issue with determining the current width of the screen. If you had previously fine-tuned your page_footer.footer_height_xxx and page_footer.social_link_percent_height_xxx options, they may need to be readjusted to account for the new proper width breakpoints after this fix is applied --- views/layout.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/layout.pug b/views/layout.pug index 3da5adf..d272d80 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -157,7 +157,7 @@ html(lang='en') return decodeURIComponent(results[2].replace(/\+/g, ' ')); } function fixFooterHeightAndPosition() { - var screenWidth = $(window).width(); + var screenWidth = $(window).outerWidth(); if (screenWidth <= 575) { // Mobile @@ -205,7 +205,7 @@ html(lang='en') } function getSocialLinkHeight() { var retVal = 70; - var screenWidth = $(window).width(); + var screenWidth = $(window).outerWidth(); if (screenWidth <= 575) { // Mobile