Small tweaks to the iframe-escape button

This commit is contained in:
Pieter Vander Vennet 2020-08-08 15:01:22 +02:00
parent de9bb13568
commit 6acd49d888
2 changed files with 5 additions and 1 deletions

View file

@ -1197,6 +1197,7 @@ form {
background-color: white;
border-radius: 2em;
display: block;
width: min-content;
}
.iframe-escape img{

View file

@ -167,7 +167,10 @@ InitUiElements.OnlyIf(State.state.featureSwitchWelcomeMessage, () => {
});
if ((window != window.top && !State.state.featureSwitchWelcomeMessage.data) || State.state.featureSwitchIframe.data) {
new FixedUiElement(`<a href='${window.location}' target='_blank'><span class='iframe-escape'><img src='assets/pop-out.svg'></span></a>`).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(`<a href='${url}' target='_blank'><span class='iframe-escape'><img src='assets/pop-out.svg'></span></a>`).AttachTo("messagesbox")
}