Small tweaks to the iframe-escape button
This commit is contained in:
parent
de9bb13568
commit
6acd49d888
2 changed files with 5 additions and 1 deletions
|
@ -1197,6 +1197,7 @@ form {
|
|||
background-color: white;
|
||||
border-radius: 2em;
|
||||
display: block;
|
||||
width: min-content;
|
||||
}
|
||||
|
||||
.iframe-escape img{
|
||||
|
|
5
index.ts
5
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(`<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")
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue