Skip to content

Commit

Permalink
fix: 修复cutMenu布局和top布局内容高度计算错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Cwealth committed Dec 15, 2023
1 parent 649fb17 commit 8badd48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/layout/components/AppView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ const tagsView = computed(() => appStore.getTagsView)
// '!min-h-[calc(100%-var(--app-content-padding)-var(--app-content-padding)-var(--app-footer-height)-var(--tags-view-height)-var(--top-tool-height))]':
// !fixedHeader && layout === 'top' && footer,
'!min-h-[calc(100%-var(--top-tool-height)-var(--app-content-padding)-var(--app-content-padding))]':
'!min-h-[calc(100%-var(--app-footer-height)-var(--app-content-padding)-var(--app-content-padding))]':
fixedHeader && layout === 'cutMenu' && footer,
'!min-h-[calc(100%-var(--top-tool-height)-var(--app-content-padding)-var(--app-content-padding)-var(--tags-view-height))]':
'!min-h-[calc(100%-var(--app-footer-height)-var(--app-content-padding)-var(--app-content-padding)-var(--tags-view-height))]':
!fixedHeader && layout === 'cutMenu' && footer
}
]"
Expand Down
4 changes: 2 additions & 2 deletions src/layout/components/useRenderLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ export const useRenderLayout = () => {
`${prefixCls}-content`,
'w-full',
{
'h-[calc(100%-var(--app-footer-height))]': !fixedHeader.value,
'h-[calc(100%-var(--tags-view-height)-var(--app-footer-height))]': fixedHeader.value
'h-[calc(100%-var(--top-tool-height))]': !fixedHeader.value,
'h-[calc(100%-var(--tags-view-height)-var(--top-tool-height))]': fixedHeader.value
}
]}
>
Expand Down

0 comments on commit 8badd48

Please sign in to comment.