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
|
-
|
|
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);
|