Skip to content

Commit

Permalink
fix(projects): fix the issue of abnormal width of the sidebar in the …
Browse files Browse the repository at this point in the history
…top menu mix and reverse mode (#562)
  • Loading branch information
Azir-11 committed Jul 22, 2024
1 parent 613c836 commit c469512
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 c469512

Please sign in to comment.