pds-dev-kit-web-test 2.3.2 → 2.3.3
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.
@@ -23,11 +23,12 @@ require("react");
|
|
23
23
|
var styled_components_1 = __importDefault(require("styled-components"));
|
24
24
|
var components_1 = require("../CustomSection/components");
|
25
25
|
var types_1 = require("../CustomSection/types");
|
26
|
+
var gap = 10;
|
26
27
|
function FlexGridItem(_a) {
|
27
28
|
var cb = _a.cb, index = _a.index, device = _a.device, rowHeight = _a.rowHeight;
|
28
29
|
var CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS = cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT.CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS;
|
29
30
|
var gridArea = getGridAreaFromCB(cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT, device);
|
30
|
-
var defaultHeight = CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS * rowHeight;
|
31
|
+
var defaultHeight = (CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS * rowHeight) + ((CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS - 1) * gap);
|
31
32
|
return ((0, jsx_runtime_1.jsx)(GridItem, __assign({ style: {
|
32
33
|
gridArea: gridArea,
|
33
34
|
maxHeight: cb.componentBlockCode !== types_1.CB_ALL_CODES.CB_TEXT ? defaultHeight : undefined
|