Skip to content

Commit

Permalink
Fix overflow issue with data table
Browse files Browse the repository at this point in the history
Signed-off-by: Liam Barry Allan <[email protected]>
  • Loading branch information
worksofliam committed Jul 13, 2022
1 parent 299f47e commit 13ec4da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/language/results/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ exports.generateScroller = (basicSelect) => {
</script>
</head>
<body>
<vscode-data-grid id="scroller"></vscode-data-grid>
<vscode-data-grid id="scroller" style="min-width: max-content;"></vscode-data-grid>
<vscode-divider></vscode-divider>
<p id="nextButton">Execute statement.</p>
</body>
Expand Down Expand Up @@ -213,7 +213,7 @@ exports.generateTable = (id, columns, rows) => {
});

let result = {
html: `<vscode-data-grid id="${id}"></vscode-data-grid>`,
html: `<vscode-data-grid id="${id}" style="min-width: max-content;"></vscode-data-grid>`,
js: [
`const ${id} = document.getElementById("${id}");`,
`${id}.columnDefinitions = ${JSON.stringify(columns)};`,
Expand Down

0 comments on commit 13ec4da

Please sign in to comment.