UX: Default to wide tables (#16)

* UX: Default to 100% wide tables

* DEV: Change default spreadsheet rows/columns

Co-authored-by: Keegan George <kgeorge13@gmail.com>
This commit is contained in:
Penar Musaraj 2022-08-12 14:11:27 -04:00 committed by GitHub
parent ec42e4a022
commit a8f27d9131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 1 deletions

View File

@ -102,6 +102,9 @@ export default class SpreadsheetEditor extends Component {
["", "", ""], ["", "", ""],
["", "", ""], ["", "", ""],
["", "", ""], ["", "", ""],
["", "", ""],
["", "", ""],
["", "", ""],
]; ];
const columns = [ const columns = [
@ -123,6 +126,12 @@ export default class SpreadsheetEditor extends Component {
), ),
width: this.defaultColWidth, width: this.defaultColWidth,
}, },
{
title: I18n.t(
themePrefix("discourse_table_builder.default_header.col_4")
),
width: this.defaultColWidth,
},
]; ];
return this.buildSpreadsheet(data, columns); return this.buildSpreadsheet(data, columns);

View File

@ -27,5 +27,6 @@ en:
col_1: "Column 1" col_1: "Column 1"
col_2: "Column 2" col_2: "Column 2"
col_3: "Column 3" col_3: "Column 3"
col_4: "Column 4"
theme_metadata: theme_metadata:
description: "Adds a button to the composer to easily build tables in markdown" description: "Adds a button to the composer to easily build tables in markdown"

View File

@ -25,7 +25,7 @@
.modal-inner-container { .modal-inner-container {
--modal-max-width: 90%; --modal-max-width: 90%;
width: max-content; width: 100vw;
} }
.modal-body { .modal-body {
@ -55,4 +55,15 @@
} }
} }
} }
.jexcel_container {
padding: 0.5em;
min-width: 100%;
.jexcel_content {
min-width: 100%;
table.jexcel {
min-width: 100%;
}
}
}
} }