nodebb-theme-harmony
Advanced tools
Comparing version 2.0.0-pre.40 to 2.0.0-pre.41
{ | ||
"name": "nodebb-theme-harmony", | ||
"version": "2.0.0-pre.40", | ||
"version": "2.0.0-pre.41", | ||
"nbbpm": { | ||
@@ -5,0 +5,0 @@ "compatibility": "^3.7.0" |
@@ -257,16 +257,14 @@ 'use strict'; | ||
['notifications', 'chat'].forEach((type) => { | ||
const countEl = document.querySelector(`[component="${type}/count"]`); | ||
if (!countEl) { | ||
const countEl = $(`nav.sidebar [component="${type}/count"]`).first(); | ||
if (!countEl.length) { | ||
return; | ||
} | ||
const count = parseInt(countEl.innerText, 10); | ||
const count = parseInt(countEl.text(), 10); | ||
if (count > 1) { | ||
const listEls = document.querySelectorAll(`[component="${type}/list"]`); | ||
listEls.forEach((listEl) => { | ||
const placeholder = listEl.querySelector('*'); | ||
if (placeholder) { | ||
for (let x = 0; x < count - 1; x++) { | ||
const cloneEl = placeholder.cloneNode(true); | ||
listEl.insertBefore(cloneEl, placeholder); | ||
} | ||
const listEls = $(`.dropdown-menu [component="${type}/list"]`); | ||
listEls.each((index, el) => { | ||
const placeholder = $(el).children().first(); | ||
for (let x = 0; x < count - 1; x++) { | ||
const cloneEl = placeholder.clone(true); | ||
cloneEl.insertAfter(placeholder); | ||
} | ||
@@ -273,0 +271,0 @@ }); |
@@ -13,2 +13,5 @@ Harmony theme for NodeBB | ||
### Categories | ||
_The cards in the header are added by the recent cards plugin. https://github.com/NodeBB-Community/nodebb-plugin-recent-cards_ | ||
<img height="450" src="screenshots/categories.png"> | ||
@@ -15,0 +18,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23
1319188
163
519
1