Skip to content

Commit

Permalink
webui: Only suppress the vertical overflow in the data grid
Browse files Browse the repository at this point in the history
We want to keep the X overflow being allowed, as some tables are
pretty wide. :)
  • Loading branch information
justinclift committed Apr 21, 2023
1 parent f8ab36a commit 8dea3e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui/jsx/database-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ export default function DatabaseView() {
<DatabasePageControls position="top" offset={offset} maxRows={maxRows} rowCount={rowCount} setOffset={(newOffset) => changeView(table, newOffset, sortColumns.length ? sortColumns[0].columnKey : null, sortColumns.length ? sortColumns[0].direction : null)} />
<DataGrid
// We are showing one page of rows unless this is the last page with a smaller number of rows. The "+ 1" includes the header row. The 35 is the default row height size in pixels.
style={{height: ((Math.min(rowCount - offset, maxRows) + 1) * 35) + "px", overflow: "hidden"}}
style={{height: ((Math.min(rowCount - offset, maxRows) + 1) * 35) + "px", overflowY: "hidden"}}
className="rdg-light"
renderers={{noRowsFallback: <DataGridNoRowsRender />}}
columns={columns}
Expand Down

0 comments on commit 8dea3e5

Please sign in to comment.