Add a default width to the first column of a table

This commit is contained in:
Pieter Vander Vennet 2021-09-18 02:46:39 +02:00
parent c88e69b04f
commit e1cc24df2b

View file

@ -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));
}