nodebb-theme-harmony 1.1.89 → 1.1.91
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
|
@@ -278,10 +278,13 @@ $(document).ready(function () {
|
|
|
278
278
|
function fixSidebarOverflow() {
|
|
279
279
|
// overflow-y-auto needs to be removed on main-nav when dropdowns are opened
|
|
280
280
|
const mainNavEl = $('#main-nav');
|
|
281
|
-
|
|
282
|
-
mainNavEl.
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
281
|
+
function toggleOverflow() {
|
|
282
|
+
mainNavEl.toggleClass(
|
|
283
|
+
'overflow-y-auto',
|
|
284
|
+
!mainNavEl.find('.dropdown-menu.show').length
|
|
285
|
+
);
|
|
286
|
+
}
|
|
287
|
+
mainNavEl.on('shown.bs.dropdown', toggleOverflow)
|
|
288
|
+
.on('hidden.bs.dropdown', toggleOverflow);
|
|
286
289
|
}
|
|
287
290
|
});
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
</span>
|
|
35
35
|
<span component="topic/pinned" class="badge border border-gray-300 text-body {{{ if (./scheduled || !./pinned) }}}hidden{{{ end }}}">
|
|
36
36
|
<i class="fa fa-thumb-tack"></i>
|
|
37
|
-
<span>{{{ if !./pinExpiry }}}[[topic:pinned]]{{{ else }}}[[topic:pinned-with-expiry, {isoTimeToLocaleString(./pinExpiryISO)}]]{{{ end }}}</span>
|
|
37
|
+
<span>{{{ if !./pinExpiry }}}[[topic:pinned]]{{{ else }}}[[topic:pinned-with-expiry, {isoTimeToLocaleString(./pinExpiryISO, config.userLang)}]]{{{ end }}}</span>
|
|
38
38
|
</span>
|
|
39
39
|
<span component="topic/locked" class="badge border border-gray-300 text-body {{{ if !./locked }}}hidden{{{ end }}}">
|
|
40
40
|
<i class="fa fa-lock"></i>
|
package/templates/topic.tpl
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
</span>
|
|
23
23
|
<span component="topic/pinned" class="badge badge border border-gray-300 text-body {{{ if (scheduled || !pinned) }}}hidden{{{ end }}}">
|
|
24
24
|
<i class="fa fa-thumb-tack"></i>
|
|
25
|
-
{{{ if !pinExpiry }}}[[topic:pinned]]{{{ else }}}[[topic:pinned-with-expiry, {isoTimeToLocaleString(./pinExpiryISO)}]]{{{ end }}}
|
|
25
|
+
{{{ if !pinExpiry }}}[[topic:pinned]]{{{ else }}}[[topic:pinned-with-expiry, {isoTimeToLocaleString(./pinExpiryISO, config.userLang)}]]{{{ end }}}
|
|
26
26
|
</span>
|
|
27
27
|
<span component="topic/locked" class="badge badge border border-gray-300 text-body {{{ if !locked }}}hidden{{{ end }}}">
|
|
28
28
|
<i class="fa fa-lock"></i>
|