Fix bad CLS score for frontend roadmapg

pull/954/head
Kamran Ahmed 3 years ago
parent fb5a7fb09f
commit 77a9c31c6b
  1. 7
      pages/[roadmap]/interactive.tsx

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

Loading…
Cancel
Save