nodebb-theme-harmony 1.2.75 → 1.2.77
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
|
@@ -260,11 +260,14 @@ $(document).ready(function () {
|
|
|
260
260
|
}
|
|
261
261
|
const count = parseInt(countEl.text(), 10);
|
|
262
262
|
if (count > 1) {
|
|
263
|
-
const
|
|
264
|
-
|
|
265
|
-
const
|
|
266
|
-
|
|
267
|
-
|
|
263
|
+
const listEls = $(`.dropdown-menu [component="${type}/list"]`);
|
|
264
|
+
listEls.each((index, el) => {
|
|
265
|
+
const placeholder = $(el).children().first();
|
|
266
|
+
for (let x = 0; x < count - 1; x++) {
|
|
267
|
+
const cloneEl = placeholder.clone(true);
|
|
268
|
+
cloneEl.insertAfter(placeholder);
|
|
269
|
+
}
|
|
270
|
+
});
|
|
268
271
|
}
|
|
269
272
|
});
|
|
270
273
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
{{{ if (brand:logo || config.showSiteTitle)}}}
|
|
1
|
+
{{{ if (brand:logo || (config.showSiteTitle || widgets.brand-header.length)) }}}
|
|
2
2
|
<div class="container-lg px-md-4 brand-container">
|
|
3
3
|
<div class="col-12 d-flex border-bottom pb-3 {{{ if config.theme.centerHeaderElements }}}justify-content-center{{{ end }}}">
|
|
4
|
+
{{{ if (brand:logo || config.showSiteTitle) }}}
|
|
4
5
|
<div component="brand/wrapper" class="d-flex align-items-center gap-3 p-2 rounded-1 align-content-stretch ">
|
|
5
6
|
{{{ if brand:logo }}}
|
|
6
7
|
<a component="brand/anchor" href="{{{ if brand:logo:url }}}{brand:logo:url}{{{ else }}}{relative_path}/{{{ end }}}" title="[[global:header.brand-logo]]">
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
</a>
|
|
15
16
|
{{{ end }}}
|
|
16
17
|
</div>
|
|
18
|
+
{{{ end }}}
|
|
17
19
|
{{{ if widgets.brand-header.length }}}
|
|
18
20
|
<div data-widget-area="brand-header" class="flex-fill gap-3 p-2 align-self-center">
|
|
19
21
|
{{{each widgets.brand-header}}}
|