nodebb-theme-harmony 2.0.0-pre.5 → 2.0.0-pre.7
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
|
@@ -65,11 +65,8 @@ $(document).ready(function () {
|
|
|
65
65
|
const bottomBar = $('[component="bottombar"]');
|
|
66
66
|
const $body = $('body');
|
|
67
67
|
const $window = $(window);
|
|
68
|
-
$body.on('shown.bs.dropdown', '.sticky-tools', function () {
|
|
69
|
-
bottomBar.
|
|
70
|
-
});
|
|
71
|
-
$body.on('hidden.bs.dropdown', '.sticky-tools', function () {
|
|
72
|
-
bottomBar.removeClass('hidden');
|
|
68
|
+
$body.on('shown.bs.dropdown hidden.bs.dropdown', '.sticky-tools', function () {
|
|
69
|
+
bottomBar.toggleClass('hidden', $(this).find('.dropdown-menu.show').length);
|
|
73
70
|
});
|
|
74
71
|
function isSearchVisible() {
|
|
75
72
|
return !!$('[component="bottombar"] [component="sidebar/search"] .search-dropdown.show').length;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div class="{{{ if config.theme.stickyToolbar }}}sticky-tools{{{ end }}} mb-3">
|
|
2
2
|
<nav class="topic-list-header d-flex flex-nowrap my-2 p-0 border-0 rounded">
|
|
3
3
|
<div class="d-flex flex-row p-2 text-bg-light gap-1 border rounded w-100 align-items-center">
|
|
4
|
-
<div component="category/controls" class="d-flex me-auto mb-0 gap-2
|
|
4
|
+
<div component="category/controls" class="d-flex me-auto mb-0 gap-2 flex-wrap">
|
|
5
5
|
{{{ if template.category }}}
|
|
6
6
|
<!-- IMPORT partials/category/watch.tpl -->
|
|
7
7
|
<!-- IMPORT partials/tags/filter-dropdown-left.tpl -->
|