diff --git a/lib/persona.js b/lib/persona.js index a7f8cd6..6e24c13 100644 --- a/lib/persona.js +++ b/lib/persona.js @@ -9,8 +9,19 @@ $(document).ready(function() { setupMobileMenu(); setupQuickReply(); configureNavbarHiding(); + fixHeaderPadding(); $(window).on('resize', utils.debounce(configureNavbarHiding, 200)); + $(window).on('resize', fixHeaderPadding); + + function fixHeaderPadding() { + var env = utils.findBootstrapEnvironment(); + if (env === 'sm' || env === 'xs' || env === 'md') { + $('#panel').css('padding-top', $('#header-menu').outerHeight(true)); + } else { + $('#panel').css('padding-top', ''); + } + } function configureNavbarHiding () { var navbarEl = $(".navbar-fixed-top");