Mobile navigation: width detection problem (#5587)

This commit is contained in:
s-tyshchenko 2022-03-07 01:34:17 +02:00 committed by GitHub
parent c47d9f219d
commit 89b0410349
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 4 deletions

View File

@ -40,3 +40,4 @@
- Enh #5127: LDAP: Reset mapping for single user only
- Fix #5581: Fix long words in comment form
- Fix #5578: Improved `rememberMe` parameter handling for thirdparty auth provider
- Fix #5340: Mobile navigation: width detection problem

View File

@ -23,7 +23,7 @@ TopNavigationAsset::register($this);
<?= Yii::t('base', 'Menu'); ?>
<b class="caret"></b>
</a>
<ul id="top-menu-sub-dropdown" class="dropdown-menu">
<ul id="top-menu-sub-dropdown" class="dropdown-menu dropdown-menu-right">
</ul>
</li>

View File

@ -27,9 +27,6 @@ humhub.module('ui.topNavigation', function (module, require, $) {
while (isOverflow() && moveNextItemToDropDown($topMenuDropdown)) {}
// We remove the next dropdown for edgecases, e.g. the scrollbar appears after init
moveNextItemToDropDown($topMenuDropdown);
$topBarSecond.css('overflow', '');
$('#top-menu-sub').find('.dropdown-toggle').dropdown();