nodebb-theme-harmony 1.1.59 → 1.1.60
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 +11 -0
package/package.json
CHANGED
package/public/harmony.js
CHANGED
|
@@ -9,6 +9,7 @@ $(document).ready(function () {
|
|
|
9
9
|
handleMobileNavigator();
|
|
10
10
|
setupNavTooltips();
|
|
11
11
|
fixPlaceholders();
|
|
12
|
+
fixSidebarOverflow();
|
|
12
13
|
|
|
13
14
|
function setupSkinSwitcher() {
|
|
14
15
|
$('[component="skinSwitcher"]').on('click', '.dropdown-item', function () {
|
|
@@ -273,4 +274,14 @@ $(document).ready(function () {
|
|
|
273
274
|
}
|
|
274
275
|
});
|
|
275
276
|
}
|
|
277
|
+
|
|
278
|
+
function fixSidebarOverflow() {
|
|
279
|
+
// overflow-y-auto needs to be removed on main-nav when dropdowns are opened
|
|
280
|
+
const mainNavEl = $('#main-nav');
|
|
281
|
+
mainNavEl.on('show.bs.dropdown', () => {
|
|
282
|
+
mainNavEl.removeClass('overflow-y-auto');
|
|
283
|
+
}).on('hide.bs.dropdown', () => {
|
|
284
|
+
mainNavEl.addClass('overflow-y-auto');
|
|
285
|
+
});
|
|
286
|
+
}
|
|
276
287
|
});
|