Skip to content

Commit

Permalink
feat: fix html issue in RAS maps
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahrieubland authored and Thomas Catinaud Taris committed Jun 13, 2024
1 parent 26effd8 commit 0afeee5
Show file tree
Hide file tree
Showing 7 changed files with 5,569 additions and 5,555 deletions.
4 changes: 2 additions & 2 deletions public/dashboard/maps/en/evolution-map.html

Large diffs are not rendered by default.

5,551 changes: 2,777 additions & 2,774 deletions public/dashboard/maps/en/ras-map.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/dashboard/maps/fr/evolution-map.html

Large diffs are not rendered by default.

5,552 changes: 2,779 additions & 2,773 deletions public/dashboard/maps/fr/ras-map.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/app/[locale]/dashboard/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ const TopCountriesSection = () => {
{t("sections.intro.blocks.top-10.subblock.title")}
</h3>

<Chart id="evolution-map" type="maps" className="min-h-[700px]" />
<Chart id="evolution-map" type="maps" changeFrameHeight className="min-h-[700px]" />
<MetaChart
data={[
{
Expand Down
7 changes: 6 additions & 1 deletion src/components/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ type ChartProps = {
className?: string;
height?: number;
width?: number;
changeFrameHeight?: boolean;
type?: "graphs" | "maps";
};

Expand All @@ -20,6 +21,7 @@ const Chart = ({
className,
type = "graphs",
height = 450,
changeFrameHeight = false,
width,
}: ChartProps) => {
const [chartData, setChartData] = useState({
Expand Down Expand Up @@ -72,7 +74,10 @@ const Chart = ({
src={mapData}
width={1000}
height={900}
className="w-full"
className={clsx(
"w-full",
changeFrameHeight ? "!h-[300px] sm:!h-[500px] xl:!h-[900px]" : "",
)}
/>
) : (
<div className="overflow-x-auto">
Expand Down
4 changes: 2 additions & 2 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export default {
},
colors: {
purple1: "#3b0764",
red1: "#F34620",
red2: "#E13212",
red2: "#F34620",
red1: "#E13212",
yellow1: "#EBF97B",
pink1: "#FEEAE9",
brown1: "#F3E8D8",
Expand Down

0 comments on commit 0afeee5

Please sign in to comment.