Skip to content

Commit

Permalink
fix(graph): page overflow with graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Catinaud Taris committed May 15, 2024
1 parent 6f5acfe commit 44f8754
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions src/app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,13 @@ const TopCountriesSection = () => {
Evolution de l'élevage du saumon par pays
</h3>

<DashboardChart
data={mapData.data}
layout={mapData.layout}
id="evolution-map"
/>
<div className="flex md:justify-center min-h-[450px] overflow-y-auto">
<DashboardChart
data={mapData.data}
layout={mapData.layout}
id="evolution-map"
/>
</div>
</div>
</>
);
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ const BusinessSection = () => {
connaît depuis quelques décennies une hyper-croissance à l’échelle
globale.
</p>
<div className="flex justify-center">
<div className="flex md:justify-center min-h-[450px] overflow-y-auto bg-white">
<Plot data={plot.data} layout={plot.layout} />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/JoinBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const IntroBlock = ({
saumon au monde, porte une responsabilité particulière dans
l'orientation des pratiques.
</p>
<div className="flex justify-center">
<div className="flex lg:justify-center min-h-[300px] overflow-y-auto bg-white">
<Plot data={plot.data} layout={plot.layout} />
</div>
</div>
Expand Down

0 comments on commit 44f8754

Please sign in to comment.