Skip to content

Commit 0c04657

Browse files
committed
Add table cell borders
1 parent 60745ce commit 0c04657

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

js_src/components/TableComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class TableComponent extends BaseComponent {
1515
const tableElement = document.createElement('table');
1616
// like fieldsets, tables need a name for building full dotted paths
1717
tableElement.name = this.config.name;
18-
tableElement.classList.add('table');
18+
tableElement.classList.add('table', 'is-v-separated');
1919

2020
const headRow = this.#getHeadRow();
2121

public/css/style.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ table {
5757
& .column {
5858
padding: unset;
5959
}
60-
60+
&.is-v-separated td {
61+
border-left: 1px solid #000;
62+
}
6163
}
6264

6365
/* hide labels, tooltips and modals in cells, as they are visible once per row in <th> */
@@ -278,3 +280,9 @@ div.tabs-container fieldset:not(fieldset fieldset) legend {
278280
.column.is-1 > .field > .control > .select select {
279281
min-width: 5rem;
280282
}
283+
284+
/* make dropdown selects take full width in table cells */
285+
table td .select,
286+
table td .select select {
287+
width: 100%;
288+
}

0 commit comments

Comments
 (0)