Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
gbishop committed Jan 2, 2024
1 parent 77d5b32 commit dd51015
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,11 @@ table.GridFilter td:nth-child(4) label.labeledInput {
flex-direction: column;
}
.grid {
height: 100%;
width: 100%;
}

.grid > div {
display: grid;
grid-auto-rows: 1fr;
height: 100%;
Expand Down
10 changes: 9 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10390,9 +10390,17 @@ class Grid extends TreeBase {
}
}

// empty result provokes a crash from uhtmlV4
if (!result.length) {
rows = columns = 1;
result.push(this.emptyCell());
}

style.gridTemplate = `repeat(${rows}, calc(100% / ${rows})) / repeat(${columns}, 1fr)`;

return this.component({ style }, html`${result}`);
const body = html`<div style=${styleString(style)}>${result}</div>`;

return this.component({}, body);
}

settingsDetails() {
Expand Down
2 changes: 1 addition & 1 deletion index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion service-worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dd51015

Please sign in to comment.