Skip to content

Commit

Permalink
Increase max column width in data table
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Oct 22, 2024
1 parent eb40bd3 commit 5db84fb
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 46 deletions.
2 changes: 2 additions & 0 deletions assets/packs/data_table/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export function App({ ctx, data }) {
const height = totalRows >= 10 && infiniteScroll ? fixedHeight : autoHeight;
const rowMarkerStartIndex = (content.page - 1) * content.limit + 1;
const minColumnWidth = hasSummaries ? 150 : 50;
const maxColumnWidth = 1200;
const maxColumnAutoWidth = data.content.columns.length === 1 ? 800 : 350;
const rows = content.page_length;

Expand Down Expand Up @@ -510,6 +511,7 @@ export function App({ ctx, data }) {
onGridSelectionChange={(selection) => setSelection(selection)}
rowMarkerStartIndex={rowMarkerStartIndex}
minColumnWidth={minColumnWidth}
maxColumnWidth={maxColumnWidth}
maxColumnAutoWidth={maxColumnAutoWidth}
fillHandle={true}
onItemHovered={onItemHovered}
Expand Down
92 changes: 46 additions & 46 deletions lib/assets/data_table/build/main.js

Large diffs are not rendered by default.

0 comments on commit 5db84fb

Please sign in to comment.