Comparing version 157.2.3 to 157.2.4
{ | ||
"name": "gestalt", | ||
"version": "157.2.3", | ||
"version": "157.2.4", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "homepage": "https://gestalt.pinterest.systems/", |
@@ -59,7 +59,7 @@ import { Cache } from './Cache'; | ||
const columnSpanConfig = _getColumnSpanConfig(item); | ||
if (typeof columnSpanConfig === 'number') { | ||
return columnSpanConfig; | ||
} | ||
const gridSize = columnCountToGridSize(columnCount); | ||
return columnSpanConfig[gridSize] ?? 1; | ||
const columnSpan = | ||
typeof columnSpanConfig === 'number' ? columnSpanConfig : columnSpanConfig[gridSize] ?? 1; | ||
// a multi column item can never span more columns than there are in the grid | ||
return Math.min(columnSpan, columnCount); | ||
} | ||
@@ -511,6 +511,7 @@ | ||
const multiColumnItemColumnSpan = Math.min( | ||
calculateActualColumnSpan({ columnCount, item: multiColumnItem, _getColumnSpanConfig }), | ||
const multiColumnItemColumnSpan = calculateActualColumnSpan({ | ||
columnCount, | ||
); | ||
item: multiColumnItem, | ||
_getColumnSpanConfig, | ||
}); | ||
@@ -517,0 +518,0 @@ // Skip the graph logic if the two column item can be displayed on the first row, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9352797
85712