Skip to content

Commit

Permalink
fix: table auto height (#5101)
Browse files Browse the repository at this point in the history
  • Loading branch information
mynetfan authored Dec 11, 2024
1 parent eec6f41 commit 4a20156
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/effects/common-ui/src/components/page/page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ const footerRef = useTemplateRef<HTMLDivElement>('footerRef');
const contentStyle = computed<StyleValue>(() => {
if (autoContentHeight) {
return {
height: shouldAutoHeight.value
? `calc(var(${CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT}) - ${headerHeight.value}px)`
: '0',
height: `calc(var(${CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT}) - ${headerHeight.value}px)`,
overflowY: shouldAutoHeight.value ? 'auto' : 'unset',
};
}
Expand Down

0 comments on commit 4a20156

Please sign in to comment.