diff --git a/README.md b/README.md index 41e1dc5..9f8413e 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,5 @@ [![Deploy to GitHub Pages](https://github.com/Ykrej/ServerPartDealsTable/actions/workflows/deploy.yaml/badge.svg)](https://github.com/Ykrej/ServerPartDealsTable/actions/workflows/deploy.yaml) A filterable table view for hard drives and solid state drives on https://serverpartdeals.com/. + +The site is available on github pages at https://ykrej.github.io/ServerPartDealsTable/ diff --git a/src/routes/components/Grid.svelte b/src/routes/components/Grid.svelte index 714532e..8c3e45e 100644 --- a/src/routes/components/Grid.svelte +++ b/src/routes/components/Grid.svelte @@ -47,9 +47,6 @@ maxNumConditions: 99, }, }, - autoSizeStrategy: { - type: 'fitCellContents', - }, } if (gridDiv) { diff --git a/src/routes/components/ServerPartsGrid.svelte b/src/routes/components/ServerPartsGrid.svelte index 55860ae..ba08bbd 100644 --- a/src/routes/components/ServerPartsGrid.svelte +++ b/src/routes/components/ServerPartsGrid.svelte @@ -97,6 +97,8 @@ sortable: false, resizable: false, width: 42, + minWidth: 42, + maxWidth: 42, cellRenderer: ({ value }: { value: string }) => { let element = document.createElement('div') @@ -108,7 +110,12 @@ return element }, }, - ].map((baseFilter) => ({ ...baseFilter, suppressHeaderFilterButton: true })) + ].map((baseColDef: ColDef) => ({ + ...baseColDef, + suppressHeaderFilterButton: true, + flex: 1, + minWidth: baseColDef.minWidth ?? 96, + })) const checkboxFilterDefs = [ {