From e1cc24df2bcf1c98c76e7072422248a2917b3cd4 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Sat, 18 Sep 2021 02:46:39 +0200 Subject: [PATCH] Add a default width to the first column of a table --- UI/Base/Table.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/Base/Table.ts b/UI/Base/Table.ts index 11e2fd8715..a26f4a025a 100644 --- a/UI/Base/Table.ts +++ b/UI/Base/Table.ts @@ -12,7 +12,7 @@ export default class Table extends BaseUIElement { contents: (BaseUIElement | string)[][], contentStyle?: string[][]) { super(); - this._contentStyle = contentStyle ?? []; + this._contentStyle = contentStyle ?? [["min-width: 9rem"]]; this._header = header?.map(Translations.W); this._contents = contents.map(row => row.map(Translations.W)); }