More fixes

This commit is contained in:
Pieter Vander Vennet 2021-06-16 21:23:03 +02:00
parent 2ae380f1a6
commit 9a73ae4c47
21 changed files with 203 additions and 148 deletions

View file

@ -20,6 +20,7 @@ export class SubtleButton extends UIElement {
private static generateContent(imageUrl: string | BaseUIElement, messageT: string | BaseUIElement, linkTo: { url: string | UIEventSource<string>, newTab?: boolean } = undefined): BaseUIElement {
const message = Translations.W(messageT);
message
let img;
if ((imageUrl ?? "") === "") {
img = undefined;
@ -36,7 +37,7 @@ export class SubtleButton extends UIElement {
return new Combine([
image,
message?.SetClass("blcok ml-4 overflow-ellipsis"),
]).SetClass("flex group");
]).SetClass("flex group w-full");
}
@ -44,7 +45,7 @@ export class SubtleButton extends UIElement {
new Combine([
image,
message?.SetClass("block ml-4 overflow-ellipsis")
]).SetClass("flex group"),
]).SetClass("flex group w-full"),
linkTo.url,
linkTo.newTab ?? false
)