Skip to content

Commit 4a20156

Browse files
authored
fix: table auto height (#5101)
1 parent eec6f41 commit 4a20156

File tree

1 file changed

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

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ const footerRef = useTemplateRef<HTMLDivElement>('footerRef');
3939
const contentStyle = computed<StyleValue>(() => {
4040
if (autoContentHeight) {
4141
return {
42-
height: shouldAutoHeight.value
43-
? `calc(var(${CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT}) - ${headerHeight.value}px)`
44-
: '0',
42+
height: `calc(var(${CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT}) - ${headerHeight.value}px)`,
4543
overflowY: shouldAutoHeight.value ? 'auto' : 'unset',
4644
};
4745
}

0 commit comments

Comments
 (0)