mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-31 11:50:08 +01:00
fix: hardcoded min-height in move topic modal
This commit is contained in:
@@ -3,9 +3,6 @@
|
||||
bottom: 10%;
|
||||
right: 2rem;
|
||||
z-index: $zindex-modal;
|
||||
.category-dropdown-menu {
|
||||
min-height: 300px;
|
||||
}
|
||||
}
|
||||
|
||||
@include media-breakpoint-up(sm) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
define('categorySearch', ['alerts'], function (alerts) {
|
||||
define('categorySearch', ['alerts', 'bootstrap'], function (alerts, bootstrap) {
|
||||
const categorySearch = {};
|
||||
|
||||
categorySearch.init = function (el, options) {
|
||||
@@ -96,6 +96,11 @@ define('categorySearch', ['alerts'], function (alerts) {
|
||||
.html(html.find('[component="category/list"]').html());
|
||||
el.find('[component="category/list"] [component="category/no-matches"]')
|
||||
.toggleClass('hidden', !!categories.length);
|
||||
|
||||
const bsDropdown = bootstrap.Dropdown.getInstance(el.find('.dropdown-toggle').get(0));
|
||||
if (bsDropdown) {
|
||||
bsDropdown.update();
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user