Skip to content

Commit

Permalink
Contrainte de hauteur barre 2 tonnes moins forte
Browse files Browse the repository at this point in the history
Simplifiée si empreinte énorme
  • Loading branch information
laem committed Sep 6, 2022
1 parent 560919f commit 7938c9b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source/sites/publicodes/chart/RavijenChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default ({ details }) => {
cursor: grab;
height: ${((2000 / pixel) * pixelRemSize) / (gridLength / 10) +
1}rem;
min-height: 5.5rem; /*We focus on orders of magnitude, not perfect pixels*/
min-height: 2rem; /*We focus on orders of magnitude, not perfect pixels*/
width: 95%;
background: linear-gradient(#78e08f 50%, #78e08fcf 100%);
border-radius: 0.4rem;
Expand All @@ -109,9 +109,11 @@ export default ({ details }) => {
<p css="font-size: 180%; a img {margin-left: -0.4rem; width: 1.3rem; vertical-align: super}">
{emoji('🎯')} 2 tonnes <ObjectiveExplanation />
</p>
<p>
Une case {emoji('🔲')} = {Math.round(pixel)} kg de CO₂e.
</p>
{total < 16000 && (
<p>
Une case {emoji('🔲')} = {Math.round(pixel)} kg de CO₂e.
</p>
)}
</motion.div>
)}
{hiddenTarget && (
Expand Down

0 comments on commit 7938c9b

Please sign in to comment.