Small layout tweaks, fix #751

This commit is contained in:
Pieter Vander Vennet 2022-07-01 00:16:05 +02:00
parent 972d702315
commit e7e8a1a219
7 changed files with 57 additions and 51 deletions

View file

@ -45,10 +45,12 @@ export default class ExtraLinkButton extends UIElement {
let link: BaseUIElement
const theme = this.state.layoutToUse?.id ?? ""
const basepath = window.location.host
const href = this.state.locationControl.map(loc => {
const subs = {
...loc,
theme: theme,
basepath,
language: Locale.language.data
}
return Utils.SubstituteKeys(c.href, subs)
@ -68,8 +70,7 @@ export default class ExtraLinkButton extends UIElement {
}
link = new SubtleButton(img, text, {
url:
href,
url: href,
newTab: c.newTab
})