fix: hardcoded min-height in move topic modal

This commit is contained in:
Barış Soner Uşaklı
2022-11-01 13:11:46 -04:00
parent 375ff48a46
commit c3af787bf8
2 changed files with 6 additions and 4 deletions

View File

@@ -3,9 +3,6 @@
bottom: 10%;
right: 2rem;
z-index: $zindex-modal;
.category-dropdown-menu {
min-height: 300px;
}
}
@include media-breakpoint-up(sm) {

View File

@@ -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();
}
});
}
};