@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
package/src/components/Grid.tsx
CHANGED
|
@@ -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
|
-
|
|
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
|
},
|