diff --git a/less/header.less b/less/header.less index 48b431f..cbecba5 100644 --- a/less/header.less +++ b/less/header.less @@ -242,10 +242,6 @@ margin-left: -30px; } } - - @media (min-width: @screen-md-min) { - top: 0px !important; - } } .breadcrumb { diff --git a/lib/persona.js b/lib/persona.js index 22b4798..71155ee 100644 --- a/lib/persona.js +++ b/lib/persona.js @@ -8,10 +8,22 @@ $(document).ready(function() { setupEditedByIcon(); setupMobileMenu(); setupQuickReply(); + configureNavbarHiding(); - $(".navbar-fixed-top").autoHidingNavbar({ - showOnBottom: false - }); + $(window).on('resize', utils.debounce(configureNavbarHiding, 200)); + + function configureNavbarHiding () { + var navbarEl = $(".navbar-fixed-top"); + navbarEl.autoHidingNavbar('destroy'); + navbarEl.css('top', ''); + + var env = utils.findBootstrapEnvironment(); + if (env === 'xs' || env ==='sm') { + navbarEl.autoHidingNavbar({ + showOnBottom: false, + }); + } + } function setupNProgress() { $(window).on('action:ajaxify.start', function() { diff --git a/package.json b/package.json index 47aebea..b32820c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nodebb-theme-persona", - "version": "7.2.11", + "version": "7.2.16", "nbbpm": { "compatibility": "^1.7.0" }, diff --git a/templates/account/edit.tpl b/templates/account/edit.tpl index a6e0754..e19d03d 100644 --- a/templates/account/edit.tpl +++ b/templates/account/edit.tpl @@ -56,13 +56,14 @@ - +
+
@@ -92,12 +93,16 @@
+
+ + +
@@ -106,6 +111,7 @@
+
diff --git a/templates/account/settings.tpl b/templates/account/settings.tpl index a4ddd65..5f249c3 100644 --- a/templates/account/settings.tpl +++ b/templates/account/settings.tpl @@ -158,7 +158,7 @@