Skip to content

Commit

Permalink
fix: Change csv icon fix grid cell width, add tooltip to header
Browse files Browse the repository at this point in the history
  • Loading branch information
matttdawson authored May 29, 2023
1 parent b003a67 commit 61a3b16
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 13 deletions.
36 changes: 26 additions & 10 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
"node": ">=16"
},
"peerDependencies": {
"@linzjs/lui": ">=17",
"@linzjs/lui": ">=17.60.0",
"ag-grid-community": ">=27",
"ag-grid-react": ">=27",
"lodash-es": ">=4",
"react": ">=17",
"react-dom": ">=17"
},
"dependencies": {
"@linzjs/lui": ">=17",
"@linzjs/lui": ">=17.60.0",
"ag-grid-community": ">=27",
"ag-grid-react": ">=27",
"debounce-promise": "^3.1.2",
Expand Down
1 change: 1 addition & 0 deletions src/components/GridCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export const GridCell = <RowType extends GridBaseRow, Props extends CellEditorCo

return {
colId: props.field ?? props.field,
headerTooltip: props.headerName,
sortable: !!(props?.field || props?.valueGetter),
resizable: true,
minWidth: props.flex ? 150 : 48,
Expand Down
2 changes: 1 addition & 1 deletion src/components/gridFilter/GridFilterDownloadCsvButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const GridFilterDownloadCsvButton = (csvExportParams: CsvExportParams) =>
/>
) : (
<GridFilterHeaderIconButton
icon={"ic_save_download"}
icon={"ic_csv_file"}
title={"Download CSV"}
onClick={handleDownloadClick}
disabled={downloading}
Expand Down
1 change: 1 addition & 0 deletions src/styles/GridCell.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 100%;
}

.GridCell-hoverRight {
Expand Down

0 comments on commit 61a3b16

Please sign in to comment.