Skip to content

Commit fde5738

Browse files
authored
Revert "fix(@vben/common-ui): add page footer's height to calc contentstyle (…"
This reverts commit 1f63aed.
1 parent 1f63aed commit fde5738

File tree

1 file changed

+1
-1
lines changed
  • packages/effects/common-ui/src/components/page

1 file changed

+1
-1
lines changed

packages/effects/common-ui/src/components/page/page.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const footerRef = useTemplateRef<HTMLDivElement>('footerRef');
2525
const contentStyle = computed<StyleValue>(() => {
2626
if (autoContentHeight) {
2727
return {
28-
height: `calc(var(${CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT}) - ${headerHeight.value}px - ${typeof heightOffset === 'number' ? `${heightOffset}px` : heightOffset}) - ${footerHeight.value}px`,
28+
height: `calc(var(${CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT}) - ${headerHeight.value}px - ${typeof heightOffset === 'number' ? `${heightOffset}px` : heightOffset})`,
2929
overflowY: shouldAutoHeight.value ? 'auto' : 'unset',
3030
};
3131
}

0 commit comments

Comments
 (0)