Fix bad CLS score for frontend roadmapg

pull/1657/head
Kamran Ahmed 3 years ago
parent 4eb63bddd3
commit 2aa4d08010
  1. 7
      pages/[roadmap]/interactive.tsx

@ -113,8 +113,13 @@ export function InteractiveRoadmapRenderer(props: RoadmapProps) {
return <RoadmapError roadmap={roadmap} />;
}
let minHeight: string[] = [];
if (roadmap.id === 'frontend') {
minHeight = ['970px', '970px', '2100px', '2800px', '2800px'];
}
return (
<Container maxW={'container.lg'} position="relative">
<Container maxW={'container.lg'} position="relative" minHeight={minHeight}>
{(isLoading || isRendering) && <RoadmapLoader />}
<ContentDrawer
roadmap={roadmap}

Loading…
Cancel
Save