pds-dev-kit-web-test 2.7.500 → 2.7.501
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.
|
@@ -119,9 +119,9 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props) {
|
|
|
119
119
|
var customSectionStyles = {
|
|
120
120
|
minHeight: "".concat(minHeight, "px"),
|
|
121
121
|
maxHeight: "".concat(maxHeight, "px"),
|
|
122
|
-
width: "
|
|
122
|
+
width: "".concat(Math.max(canvasWidth, minWidth !== null && minWidth !== void 0 ? minWidth : 0), "px"),
|
|
123
123
|
maxWidth: maxWidth ? "".concat(maxWidth, "px") : '100%',
|
|
124
|
-
minWidth: "".concat(
|
|
124
|
+
minWidth: minWidth ? "".concat(minWidth, "px") : '0px'
|
|
125
125
|
};
|
|
126
126
|
var onClickSection = function () {
|
|
127
127
|
if (!isEditMode) {
|
|
@@ -152,12 +152,11 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props) {
|
|
|
152
152
|
width: '100%',
|
|
153
153
|
height: '100%'
|
|
154
154
|
} }, { children: (0, jsx_runtime_1.jsx)(CompositionBackground_1.default, __assign({}, props, { isMobile: isMobile, overrideStyles: {
|
|
155
|
-
// minHeight: customSectionStyles.minHeight,
|
|
156
155
|
paddingTop: padding.top,
|
|
157
156
|
paddingBottom: padding.bottom,
|
|
158
157
|
paddingRight: padding.right,
|
|
159
158
|
paddingLeft: padding.left,
|
|
160
|
-
width:
|
|
159
|
+
width: customSectionStyles.width,
|
|
161
160
|
height: ccbCode === types_1.CB_ALL_CODES.CB_CONTENTSCAROUSEL ? 'auto' : '100%',
|
|
162
161
|
maxHeight: customSectionStyles.maxHeight,
|
|
163
162
|
minHeight: customSectionStyles.minHeight,
|
|
@@ -45,7 +45,6 @@ function CustomSectionBackground(_a) {
|
|
|
45
45
|
var data = jsonProperties.data;
|
|
46
46
|
var CB_STYLE_PROP_BGOVERLAY = data.CB_STYLE_PROP_BGOVERLAY, CB_STYLE_PROP_BGMEDIA = data.CB_STYLE_PROP_BGMEDIA;
|
|
47
47
|
var _c = (0, util_1.parseJsonProperties)(data, isMobile ? 'MOBILE' : 'DESKTOP'), style = _c.style, overlayStyle = _c.overlayStyle, effect = _c.effect;
|
|
48
|
-
console.log(style);
|
|
49
48
|
var isOverlay = getIsOverlay(isMobile, CB_STYLE_PROP_BGOVERLAY);
|
|
50
49
|
var isBgMedia = getIsBgMedia(isMobile, CB_STYLE_PROP_BGMEDIA);
|
|
51
50
|
var mediaType = getMediaType(isMobile, CB_STYLE_PROP_BGMEDIA);
|