From 005b66a37380bd8aeed20feefbfdbe713e288cd6 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Fri, 19 Sep 2025 14:27:21 +0800 Subject: [PATCH] More muted styling in iframe mode (#593) * More muted styling in iframe mode Colors match those on source.coop where the viewer is embedded. * linting --- app/src/Frame.tsx | 9 ++++++++- app/src/PageMap.tsx | 19 +++++++++++++++++-- app/src/index.css | 29 +++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 3 deletions(-) diff --git a/app/src/Frame.tsx b/app/src/Frame.tsx index bc2befa..d5cae6c 100644 --- a/app/src/Frame.tsx +++ b/app/src/Frame.tsx @@ -192,7 +192,14 @@ export function Frame(props: { return (
diff --git a/app/src/PageMap.tsx b/app/src/PageMap.tsx index 01f69c2..dd002c4 100644 --- a/app/src/PageMap.tsx +++ b/app/src/PageMap.tsx @@ -49,6 +49,7 @@ function MapView(props: { inspectFeatures: Accessor; setInspectFeatures: Setter; mapHashPassed: boolean; + iframe: boolean; }) { let mapContainer: HTMLDivElement | undefined; let hiddenRef: HTMLDivElement | undefined; @@ -459,7 +460,19 @@ function MapView(props: { return (
-
+