@saltcorn/builder 0.8.5-beta.3 → 0.8.5-beta.5

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saltcorn/builder",
3
- "version": "0.8.5-beta.3",
3
+ "version": "0.8.5-beta.5",
4
4
  "description": "Drag and drop view builder for Saltcorn, open-source no-code platform",
5
5
  "main": "index.js",
6
6
  "homepage": "https://saltcorn.com",
@@ -40,7 +40,7 @@ const sum = (xs) => {
40
40
  * @param {number} ncols
41
41
  * @returns {number}
42
42
  */
43
- const resetWidths = (ncols) => ntimes(ncols - 1, () => 12 / ncols);
43
+ const resetWidths = (ncols) => ntimes(ncols - 1, () => Math.floor(12 / ncols));
44
44
 
45
45
  /**
46
46
  * @param {number[]} widths
@@ -117,7 +117,7 @@ const ColumnsSettings = () => {
117
117
  className="form-control"
118
118
  step="1"
119
119
  min="1"
120
- max="4"
120
+ max="6"
121
121
  onChange={(e) => {
122
122
  if (!e.target) return;
123
123
  const value = e.target.value;