nodebb-theme-harmony 1.1.88 → 1.1.90

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-harmony",
3
- "version": "1.1.88",
3
+ "version": "1.1.90",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.5.0"
6
6
  },
@@ -37,7 +37,7 @@
37
37
  "url": "https://github.com/NodeBB/nodebb-theme-harmony/issues"
38
38
  },
39
39
  "dependencies": {
40
- "@fontsource/inter": "5.0.14",
40
+ "@fontsource/inter": "5.0.15",
41
41
  "@fontsource/poppins": "5.0.8"
42
42
  },
43
43
  "devDependencies": {
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
- mainNavEl.on('show.bs.dropdown', () => {
282
- mainNavEl.removeClass('overflow-y-auto');
283
- }).on('hide.bs.dropdown', () => {
284
- mainNavEl.addClass('overflow-y-auto');
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
  });