pds-dev-kit-web-test 0.2.18 → 0.2.19

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.
@@ -161,7 +161,12 @@ function CustomSection(props) {
161
161
  });
162
162
  };
163
163
  var onWidthChange = function (width) {
164
- var cellWidth = width / 24;
164
+ if (device === 'MOBILE') {
165
+ var cellWidth_1 = width / MOBILE_GRID_COLS;
166
+ setRowHeight(cellWidth_1 * 0.56);
167
+ return;
168
+ }
169
+ var cellWidth = width / DESKTOP_GRID_COLS;
165
170
  setRowHeight(cellWidth * 0.56);
166
171
  };
167
172
  var padding = (0, parseSectionPadding_1.default)(CB_LAYOUT_PROP_PADDING, device);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "0.2.18",
3
+ "version": "0.2.19",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",