diff --git a/app/src/frontend/legend.css b/app/src/frontend/legend.css index 15f5173b..1b8680d0 100644 --- a/app/src/frontend/legend.css +++ b/app/src/frontend/legend.css @@ -70,3 +70,11 @@ padding: 0 0.5rem; opacity: 0.5; } +.expander-button { + float: right; +} +@media (min-height: 670px) { + .expander-button { + visibility: hidden; + } +} diff --git a/app/src/frontend/legend.js b/app/src/frontend/legend.js index 54e16762..8632ff7a 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…
- } -