Fix flicker on python roadmap

interactive-python
Kamran Ahmed 2 years ago
parent 5f3fe3e507
commit 437dee4d24
  1. 4
      pages/[roadmap]/interactive.tsx

@ -133,6 +133,10 @@ export function InteractiveRoadmapRenderer(props: RoadmapProps) {
minHeight = ['400px', '865px', '1065px', '1400px', '1400px', '1400px']; minHeight = ['400px', '865px', '1065px', '1400px', '1400px', '1400px'];
} }
if (roadmap.id === 'python') {
minHeight = ['495px', '598px', '919px', '1238px', '1238px', '1238px'];
}
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