forked from MapComplete/MapComplete
Add a default width to the first column of a table
This commit is contained in:
parent
c88e69b04f
commit
e1cc24df2b
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ export default class Table extends BaseUIElement {
|
||||||
contents: (BaseUIElement | string)[][],
|
contents: (BaseUIElement | string)[][],
|
||||||
contentStyle?: string[][]) {
|
contentStyle?: string[][]) {
|
||||||
super();
|
super();
|
||||||
this._contentStyle = contentStyle ?? [];
|
this._contentStyle = contentStyle ?? [["min-width: 9rem"]];
|
||||||
this._header = header?.map(Translations.W);
|
this._header = header?.map(Translations.W);
|
||||||
this._contents = contents.map(row => row.map(Translations.W));
|
this._contents = contents.map(row => row.map(Translations.W));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue