@linzjs/step-ag-grid 32.4.0 → 32.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@linzjs/step-ag-grid",
3
3
  "repository": "github:linz/step-ag-grid.git",
4
4
  "license": "MIT",
5
- "version": "32.4.0",
5
+ "version": "32.4.2",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -172,6 +172,10 @@ export const Grid = <TData extends GridBaseRow = GridBaseRow>({
172
172
  // ─── Spread Remaining Params ──────────────────
173
173
  ...params
174
174
  }: GridProps<TData>): ReactElement => {
175
+ if (isChromatic()) {
176
+ sizeColumns = 'none';
177
+ }
178
+
175
179
  const {
176
180
  setApis,
177
181
  setExternallySelectedItemsAreInSync,
@@ -488,7 +492,9 @@ export const Grid = <TData extends GridBaseRow = GridBaseRow>({
488
492
  'GridCell-readonly': (ccp: CellClassParams<TData>) =>
489
493
  !suppressReadOnlyStyle && !editable(ccp as unknown as EditableCallbackParams<TData>),
490
494
  },
491
- width: colDef.minWidth || 120,
495
+ // If chromatic we fix the size to minWidth if set otherwise 120px
496
+ // else whatever user has configured which will probably be undefined
497
+ width: isChromatic() ? colDef.minWidth || 120 : colDef.width,
492
498
  };
493
499
  }
494
500
  },