|
@@ -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',
|
|
|
};
|
|
|
}
|