From 77a9c31c6b374b45fa97f27bcf99116fc10e44f4 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Fri, 10 Dec 2021 14:21:51 +0100 Subject: [PATCH] Fix bad CLS score for frontend roadmapg --- pages/[roadmap]/interactive.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pages/[roadmap]/interactive.tsx b/pages/[roadmap]/interactive.tsx index c54a91b1e..ab83dd27e 100644 --- a/pages/[roadmap]/interactive.tsx +++ b/pages/[roadmap]/interactive.tsx @@ -113,8 +113,13 @@ export function InteractiveRoadmapRenderer(props: RoadmapProps) { return ; } + let minHeight: string[] = []; + if (roadmap.id === 'frontend') { + minHeight = ['970px', '970px', '2100px', '2800px', '2800px']; + } + return ( - + {(isLoading || isRendering) && }