Fix flicker issue on javascript roadmap

pull/2791/head
Kamran Ahmed 2 years ago
parent ea92227fcd
commit bc0da926e4
  1. 4
      pages/[roadmap]/interactive.tsx

@ -141,6 +141,10 @@ export function InteractiveRoadmapRenderer(props: RoadmapProps) {
minHeight = ['590px', '1201px', '1201px', '1625px', '1625px', '1625px']; minHeight = ['590px', '1201px', '1201px', '1625px', '1625px', '1625px'];
} }
if (roadmap.id === 'javascript') {
minHeight = ['892px', '1835px', '1835px', '2475px', '2475px', '2475px'];
}
return ( return (
<Container maxW={'container.lg'} position="relative" minHeight={minHeight}> <Container maxW={'container.lg'} position="relative" minHeight={minHeight}>
{(isLoading || isRendering) && <RoadmapLoader />} {(isLoading || isRendering) && <RoadmapLoader />}

Loading…
Cancel
Save