pds-dev-kit-web-test 2.5.320 → 2.5.321
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.
@@ -53,7 +53,7 @@ var useResizableObserver_1 = require("../sections/CustomSection/hooks/useResizab
|
|
53
53
|
var util_1 = require("../sections/CustomSection/util");
|
54
54
|
var parseSectionPadding_1 = __importDefault(require("../sections/CustomSection/util/layoutPropParsers/parseSectionPadding"));
|
55
55
|
var FlexGridItem_1 = __importDefault(require("./FlexGridItem"));
|
56
|
-
|
56
|
+
// const GRID_CELL_MIN = 24;
|
57
57
|
// const DESKTOP_GRID_COLS = 24;
|
58
58
|
// const MOBILE_GRID_COLS = 8;
|
59
59
|
// const GLE_MIN_WIDTH_DESKTOP_PX = `${GRID_CELL_MIN * DESKTOP_GRID_COLS}px`;
|
@@ -155,12 +155,10 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
155
155
|
return 50;
|
156
156
|
}
|
157
157
|
if (device === 'MOBILE') {
|
158
|
-
var cellWidth_1 =
|
159
|
-
// const cellWidth = size.width / MOBILE_GRID_COLS;
|
158
|
+
var cellWidth_1 = size.width / cols;
|
160
159
|
return cellWidth_1 * 0.56;
|
161
160
|
}
|
162
|
-
var cellWidth =
|
163
|
-
// const cellWidth = size.width / DESKTOP_GRID_COLS;
|
161
|
+
var cellWidth = size.width / cols;
|
164
162
|
return cellWidth * 0.56;
|
165
163
|
})();
|
166
164
|
var baseFontSize = (function () {
|