nodebb-theme-harmony 1.0.8 → 1.0.10
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 +6 -5
- package/templates/header.tpl +1 -1
package/package.json
CHANGED
package/public/harmony.js
CHANGED
|
@@ -251,11 +251,12 @@ $(document).ready(function () {
|
|
|
251
251
|
if (count > 1) {
|
|
252
252
|
const listEls = document.querySelectorAll(`[component="${type}/list"]`);
|
|
253
253
|
listEls.forEach((listEl) => {
|
|
254
|
-
const placeholder = listEl.querySelector('
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
254
|
+
const placeholder = listEl.querySelector('*');
|
|
255
|
+
if (placeholder) {
|
|
256
|
+
for (let x = 0; x < count - 1; x++) {
|
|
257
|
+
const cloneEl = placeholder.cloneNode(true);
|
|
258
|
+
listEl.insertBefore(cloneEl, placeholder);
|
|
259
|
+
}
|
|
259
260
|
}
|
|
260
261
|
});
|
|
261
262
|
}
|
package/templates/header.tpl
CHANGED
|
@@ -39,6 +39,6 @@
|
|
|
39
39
|
document.documentElement.style.setProperty('--panel-offset', `0px`);
|
|
40
40
|
}
|
|
41
41
|
</script>
|
|
42
|
-
<div class="container px-md-4 d-flex flex-column gap-3" id="content">
|
|
42
|
+
<div class="container px-md-4 d-flex flex-column gap-3 h-100" id="content">
|
|
43
43
|
<!-- IMPORT partials/noscript/warning.tpl -->
|
|
44
44
|
<!-- IMPORT partials/noscript/message.tpl -->
|