diff --git a/app/src/frontend/legend.css b/app/src/frontend/legend.css index 15f5173b..01f5dedd 100644 --- a/app/src/frontend/legend.css +++ b/app/src/frontend/legend.css @@ -4,7 +4,7 @@ .map-legend { z-index: 1000; position: absolute; - bottom: 55px; + bottom: 50%; right: 10px; min-width: 12rem; float: right; @@ -14,7 +14,7 @@ border: 1px solid #fff; box-shadow: 0px 0px 1px 1px #222222; } -@media (min-width: 380px){ +@media (min-width: 768px){ .map-legend { bottom: 40px; } @@ -70,3 +70,11 @@ padding: 0 0.5rem; opacity: 0.5; } +.expander-button { + float: right; +} +@media (min-height: 670px) and (min-width: 768px) { + .expander-button { + visibility: hidden; + } +} diff --git a/app/src/frontend/legend.js b/app/src/frontend/legend.js index 54e16762..aea25e9c 100644 --- a/app/src/frontend/legend.js +++ b/app/src/frontend/legend.js @@ -96,71 +96,108 @@ const LEGEND_CONFIG = { } }; -const Legend = (props) => { - const details = LEGEND_CONFIG[props.slug]; - const title = details.title; - const elements = details.elements; - return ( -
{details.description}
+ : null + } + { + elements.length? +Coming soon…
+ }{details.description}
- : null - } - { - elements.length? -Coming soon…
- } -