Browse Source

revert: page height fixed,revert #6422

pull/6474/head
Netfan 7 months ago
committed by GitHub
parent
commit
e6bfbce6cb
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      packages/effects/common-ui/src/components/page/page.vue

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

@ -25,7 +25,7 @@ const footerRef = useTemplateRef<HTMLDivElement>('footerRef');
const contentStyle = computed<StyleValue>(() => {
if (autoContentHeight) {
return {
height: `calc(var(${CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT}) - ${headerHeight.value}px - ${typeof heightOffset === 'number' ? `${heightOffset}px` : heightOffset}) - ${footerHeight.value}px`,
height: `calc(var(${CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT}) - ${headerHeight.value}px - ${typeof heightOffset === 'number' ? `${heightOffset}px` : heightOffset})`,
overflowY: shouldAutoHeight.value ? 'auto' : 'unset',
};
}

Loading…
Cancel
Save