Skip to content

Commit

Permalink
fix(projects): fix abnormal width of the sidebar in the top menu mix …
Browse files Browse the repository at this point in the history
…and reverse mode
  • Loading branch information
honghuangdc committed Sep 8, 2024
1 parent 139ebfc commit 0abce88
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/layouts/base-layout/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,13 @@ function getSiderWidth() {
}
function getSiderCollapsedWidth() {
const { reverseHorizontalMix } = themeStore.layout;
const { collapsedWidth, mixCollapsedWidth, mixChildMenuWidth } = themeStore.sider;
if (isHorizontalMix.value && reverseHorizontalMix) {
return isActiveFirstLevelMenuHasChildren.value ? collapsedWidth : 0;
}
let w = isVerticalMix.value || isHorizontalMix.value ? mixCollapsedWidth : collapsedWidth;
if (isVerticalMix.value && appStore.mixSiderFixed && childLevelMenus.value.length) {
Expand Down

0 comments on commit 0abce88

Please sign in to comment.