diff --git a/assets/static/js/main-singlelayout.js b/assets/static/js/main-singlelayout.js index 9008682..a38b51b 100644 --- a/assets/static/js/main-singlelayout.js +++ b/assets/static/js/main-singlelayout.js @@ -22,15 +22,16 @@ https://github.com/spyder-ide/lektor-icon/blob/master/NOTICE.txt const heroHeight = function () { const headerHeight = $(".js-sticky").outerHeight(); - if ($(window).outerWidth() > 768) { + if ($(window).outerWidth() >= 768) { $(".js-fullheight-home").css( "height", `calc(100dvh - ${headerHeight}px)` ); + $(".hero-section").css("margin-top", `${headerHeight}px`); } else { - $(".js-fullheight-home").css("height", `50dvh - ${headerHeight}px)`); + $(".js-fullheight-home").css("height", "50dvh"); + $(".hero-section").css("margin-top", "0px"); } - $(".hero-section").css("margin-top", `${headerHeight}px`); }; const setHeroHeight = function () {