nodebb-theme-harmony 2.0.23 → 2.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/harmony.js +5 -2
- package/templates/footer.tpl +1 -1
package/package.json
CHANGED
package/public/harmony.js
CHANGED
|
@@ -63,6 +63,7 @@ $(document).ready(function () {
|
|
|
63
63
|
});
|
|
64
64
|
|
|
65
65
|
const bottomBar = $('[component="bottombar"]');
|
|
66
|
+
let stickyTools = null;
|
|
66
67
|
const location = config.theme.topMobilebar ? 'top' : 'bottom';
|
|
67
68
|
const $body = $('body');
|
|
68
69
|
const $window = $(window);
|
|
@@ -94,8 +95,8 @@ $(document).ready(function () {
|
|
|
94
95
|
-bottomBar.find('.bottombar-nav').outerHeight(true) :
|
|
95
96
|
0,
|
|
96
97
|
});
|
|
97
|
-
if (config.theme.topMobilebar && config.theme.autohideBottombar) {
|
|
98
|
-
|
|
98
|
+
if (stickyTools && config.theme.topMobilebar && config.theme.autohideBottombar) {
|
|
99
|
+
stickyTools.css({
|
|
99
100
|
top: isHiding ? 0 : 'var(--panel-offset)',
|
|
100
101
|
});
|
|
101
102
|
}
|
|
@@ -121,6 +122,8 @@ $(document).ready(function () {
|
|
|
121
122
|
setTimeout(enableAutohide, 250);
|
|
122
123
|
});
|
|
123
124
|
hooks.on('action:ajaxify.end', function () {
|
|
125
|
+
const { template } = ajaxify.data;
|
|
126
|
+
stickyTools = (template.category || template.topic) ? $('.sticky-tools') : null;
|
|
124
127
|
$window.off('scroll', delayedScroll);
|
|
125
128
|
if (config.theme.autohideBottombar) {
|
|
126
129
|
bottomBar.css({ [location]: 0 });
|
package/templates/footer.tpl
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
{{{ if !config.theme.topMobilebar }}}
|
|
7
7
|
<!-- IMPORT partials/mobile-footer.tpl -->
|
|
8
8
|
{{{ else }}}
|
|
9
|
-
<div class="fixed-bottom navigator-mobile">
|
|
9
|
+
<div class="fixed-bottom navigator-mobile d-lg-none">
|
|
10
10
|
<!-- IMPORT partials/topic/navigator-mobile.tpl -->
|
|
11
11
|
</div>
|
|
12
12
|
{{{ end }}}
|