calc top value based on page

This commit is contained in:
Claire Chabas
2025-01-30 19:35:34 +01:00
parent 020269d562
commit d3c7f4ae01
@@ -25,11 +25,11 @@ import { PageFeedbackForm } from '../PageFeedback';
function getTopOffset(props: { sectionsHeader: boolean; topHeader: boolean }) {
if (props.topHeader && props.sectionsHeader) {
return 'lg:top-[6.75rem] lg:max-h-[calc(100vh_-_6.75rem)]';
return 'lg:top-[calc(100vh_-_6.75rem)] lg:max-h-[calc(100vh_-_6.75rem)]';
}
if (props.topHeader) {
return 'lg:top-16 lg:max-h-[calc(100vh_-_4rem)]';
return 'lg:top-[calc(100vh_-_4rem)] lg:max-h-[calc(100vh_-_4rem)]';
}
return 'lg:top-0 lg:max-h-screen';