From 6acd49d888f233310b8f4ba2524e07247733d51a Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sat, 8 Aug 2020 15:01:22 +0200 Subject: [PATCH] Small tweaks to the iframe-escape button --- index.css | 1 + index.ts | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/index.css b/index.css index 43fbd89..25ed81f 100644 --- a/index.css +++ b/index.css @@ -1197,6 +1197,7 @@ form { background-color: white; border-radius: 2em; display: block; + width: min-content; } .iframe-escape img{ diff --git a/index.ts b/index.ts index 9d3f362..e2d38fe 100644 --- a/index.ts +++ b/index.ts @@ -167,7 +167,10 @@ InitUiElements.OnlyIf(State.state.featureSwitchWelcomeMessage, () => { }); if ((window != window.top && !State.state.featureSwitchWelcomeMessage.data) || State.state.featureSwitchIframe.data) { - new FixedUiElement(``).AttachTo("top-right") + const currentLocation = State.state.locationControl; + const url = `${window.location.origin}${window.location.pathname}?z=${currentLocation.data.zoom}&lat=${currentLocation.data.lat}&lon=${currentLocation.data.lon}`; + + new FixedUiElement(``).AttachTo("messagesbox") }