nodebb-theme-harmony 1.2.70 → 1.2.72
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
CHANGED
package/public/harmony.js
CHANGED
|
@@ -72,7 +72,7 @@ $(document).ready(function () {
|
|
|
72
72
|
return !!$('[component="bottombar"] [component="sidebar/search"] .search-dropdown.show').length;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
let lastScrollTop =
|
|
75
|
+
let lastScrollTop = $window.scrollTop();
|
|
76
76
|
let newPostsLoaded = false;
|
|
77
77
|
|
|
78
78
|
function onWindowScroll() {
|
|
@@ -86,7 +86,7 @@ $(document).ready(function () {
|
|
|
86
86
|
const diff = Math.abs(st - lastScrollTop);
|
|
87
87
|
const scrolledDown = st > lastScrollTop;
|
|
88
88
|
const scrolledUp = st < lastScrollTop;
|
|
89
|
-
if (diff >
|
|
89
|
+
if (diff > 10) {
|
|
90
90
|
bottomBar.css({
|
|
91
91
|
bottom: !scrolledUp && scrolledDown ?
|
|
92
92
|
-bottomBar.find('.bottombar-nav').outerHeight(true) :
|
|
@@ -115,8 +115,10 @@ $(document).ready(function () {
|
|
|
115
115
|
});
|
|
116
116
|
hooks.on('action:ajaxify.end', function () {
|
|
117
117
|
$window.off('scroll', delayedScroll);
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
if (config.theme.autohideBottombar) {
|
|
119
|
+
bottomBar.css({ bottom: 0 });
|
|
120
|
+
setTimeout(enableAutohide, 250);
|
|
121
|
+
}
|
|
120
122
|
});
|
|
121
123
|
});
|
|
122
124
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{{{each tags}}}
|
|
2
2
|
<a href="{config.relative_path}/tags/{./valueEncoded}" data-tag="{./valueEscaped}" class="btn btn-ghost ff-base d-flex flex-column gap-1 align-items-start justify-content-start text-truncate p-2">
|
|
3
3
|
<div class="fw-semibold text-nowrap tag-item w-100 text-start text-truncate">{./valueEscaped}</div>
|
|
4
|
-
<div class="text-xs text-muted text-nowrap tag-topic-count">[[global:x-topics, {formattedNumber(./score)}]]</div>
|
|
4
|
+
<div class="text-xs text-muted text-nowrap tag-topic-count">[[global:x-topics, {txEscape(formattedNumber(./score))}]]</div>
|
|
5
5
|
</a>
|
|
6
6
|
{{{end}}}
|