navbar fix

This commit is contained in:
Yuri Kuznetsov
2023-09-22 12:21:05 +03:00
parent f7f549fb05
commit 555d8a1a24
2 changed files with 6 additions and 3 deletions
+3 -3
View File
@@ -158,7 +158,7 @@ class NavbarSiteView extends View {
const itemCount = $menu.children().length;
const tabHeight = isSide ?
this.$tabs.find('> .tab').height() :
this.$tabs.find('> .tab:not(.tab-divider)').height() :
this.$tabs.find('.tab-group > ul > li:visible').height();
const menuHeight = tabHeight * itemCount;
@@ -726,12 +726,12 @@ class NavbarSiteView extends View {
this.$more.find('> li:visible').each((i, el) => {
const $el = $(el);
moreHeight += $el.height();
moreHeight += $el.outerHeight(true);
});
minHeight = Math.max(minHeight, moreHeight);
const tabHeight = this.$tabs.find('> .tab').height();
const tabHeight = this.$tabs.find('> .tab:not(.tab-divider)').height();
this.tabList.forEach((item, i) => {
if (typeof item !== 'object') {
+3
View File
@@ -124,6 +124,9 @@ body[data-navbar="side"] {
> li.more {
> ul {
> li.tab-divider {
min-height: 10px;
margin-top: 9px;
&:not(:first-child):before {
height: 1px;
margin: 9.5px 0;