Skip to content

Commit

Permalink
finetune comparaisons la rochelle
Browse files Browse the repository at this point in the history
  • Loading branch information
robindemourat committed Dec 3, 2024
1 parent 5e9a3ff commit 839cb8b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/components/BarChart/BarChart.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// justify-content: flex-end;
// align-items: center;
overflow: visible;
line-height: 1;
}
@include tablet {
.row.vis-row {
Expand Down
1 change: 1 addition & 0 deletions src/components/ScrollyPage/ScrollyPage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
height: 100%;
flex: 1;
position: relative;
margin-bottom: 1rem;
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { lt } from "lodash";
import { useState, useMemo } from "react";
import cx from 'classnames';
import BarChart from "../../components/BarChart";
import { formatNumber } from "../../utils/misc";
import translate from '../../utils/translate';
Expand All @@ -12,7 +13,7 @@ const ComparaisonsLaRochelle = ({
atlasMode,
lang,
}) => {
const height = atlasMode ? inputHeight - 350 : inputHeight - 250;
const height = atlasMode ? inputHeight - 350 : inputHeight - 300;
const [withLest, setWithLest] = useState(true);
// const field = useMemo(() => withLest ? 'estimate' : 'estimate_without_lest', [withLest]);
// const actualData = useMemo(() => {
Expand Down Expand Up @@ -83,7 +84,9 @@ const ComparaisonsLaRochelle = ({

const exportsMonde = +data.get('comparaisons-la-rochelle-toflit18.csv').find(d => d.partenaire === 'Monde').valeur;
return (
<div className="ComparaisonsLaRochelle">
<div
className={cx("ComparaisonsLaRochelle", {'is-atlas-mode': atlasMode})}
>
<div className="columns-container">
<div className="column">
<h2>{translate('ComparaisonLaRochelle', 'title1', lang)}</h2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
display: flex;
flex-flow: row nowrap;
box-sizing: border-box;

// height: 50%;
.column {

Expand Down Expand Up @@ -38,4 +37,7 @@
justify-content: center;
margin-top: $medium-gutter;
}

// &:not(.is-atlas-mode) {
// }
}

0 comments on commit 839cb8b

Please sign in to comment.