diff --git a/packages/@ourworldindata/utils/src/Util.ts b/packages/@ourworldindata/utils/src/Util.ts index aab01f30349..aa7adf012b8 100644 --- a/packages/@ourworldindata/utils/src/Util.ts +++ b/packages/@ourworldindata/utils/src/Util.ts @@ -1624,15 +1624,6 @@ export function traverseEnrichedBlocks( traverseEnrichedBlocks(node, callback, spanCallback) }) }) - .with( - { type: "key-indicator-collection" }, - (keyIndicatorCollection) => { - callback(keyIndicatorCollection) - keyIndicatorCollection.blocks.forEach((node) => - traverseEnrichedBlocks(node, callback, spanCallback) - ) - } - ) .with( { type: "key-indicator", @@ -1644,6 +1635,15 @@ export function traverseEnrichedBlocks( }) } ) + .with( + { type: "key-indicator-collection" }, + (keyIndicatorCollection) => { + callback(keyIndicatorCollection) + keyIndicatorCollection.blocks.forEach((node) => + traverseEnrichedBlocks(node, callback, spanCallback) + ) + } + ) .with( { type: P.union( diff --git a/site/gdocs/components/KeyIndicator.scss b/site/gdocs/components/KeyIndicator.scss index 0f0c40201a7..cfd4c66f465 100644 --- a/site/gdocs/components/KeyIndicator.scss +++ b/site/gdocs/components/KeyIndicator.scss @@ -14,6 +14,9 @@ .indicator-metadata { margin-bottom: 16px; + @include sm-only { + display: none; + } } .indicator-title { @@ -119,4 +122,11 @@ display: none; } } + + .key-indicator-chart { + @include sm-only { + order: -1; + margin-bottom: 16px; + } + } } diff --git a/site/gdocs/components/KeyIndicator.tsx b/site/gdocs/components/KeyIndicator.tsx index 881c750a26e..deea95bc005 100644 --- a/site/gdocs/components/KeyIndicator.tsx +++ b/site/gdocs/components/KeyIndicator.tsx @@ -54,7 +54,7 @@ export default function KeyIndicator({ {/* desktop */} -

+