@inf-monkeys-tech/monkeys-design 1.0.47 → 1.0.48

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.
@@ -8949,6 +8949,7 @@ function resolveColumnCount({
8949
8949
  itemCount,
8950
8950
  gap,
8951
8951
  columns,
8952
+ underfilledBehavior,
8952
8953
  maxColumns,
8953
8954
  minCardWidth,
8954
8955
  idealCardWidth,
@@ -8969,7 +8970,7 @@ function resolveColumnCount({
8969
8970
  const maxCandidate = Math.max(
8970
8971
  1,
8971
8972
  Math.min(
8972
- safeItemCount,
8973
+ underfilledBehavior === "preserve-columns" ? MAX_COLUMN_COUNT : safeItemCount,
8973
8974
  Math.ceil((containerWidth + gap) / (Math.max(minWidth * 0.75, 1) + gap))
8974
8975
  )
8975
8976
  );
@@ -9146,6 +9147,7 @@ function WorkbenchCollection({
9146
9147
  itemCount: layoutItemCount,
9147
9148
  gap,
9148
9149
  columns: config.layout.columns,
9150
+ underfilledBehavior: config.layout.underfilledBehavior,
9149
9151
  maxColumns: config.layout.maxColumns,
9150
9152
  minCardWidth: config.layout.minCardWidth,
9151
9153
  idealCardWidth: config.layout.idealCardWidth ?? config.layout.columnWidth,