@contentful/experiences-core 1.17.1-dev-20240930T2125-003fb9f.0 → 1.17.1-dev-20241001T2117-38a2023.0
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.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2200,7 +2200,7 @@ const transformMedia = (asset, variables, resolveDesignValue, variableName, path
|
|
|
2200
2200
|
return;
|
|
2201
2201
|
}
|
|
2202
2202
|
if (variableName === 'cfBackgroundImageUrl') {
|
|
2203
|
-
const width = resolveDesignValue(variables['cfWidth']?.type === 'DesignValue' ? variables['cfWidth'].valuesByBreakpoint : {}, 'cfWidth');
|
|
2203
|
+
const width = resolveDesignValue(variables['cfWidth']?.type === 'DesignValue' ? variables['cfWidth'].valuesByBreakpoint : {}, 'cfWidth') || '100%';
|
|
2204
2204
|
const optionsVariableName = 'cfBackgroundImageOptions';
|
|
2205
2205
|
const options = resolveDesignValue(variables[optionsVariableName]?.type === 'DesignValue'
|
|
2206
2206
|
? variables[optionsVariableName].valuesByBreakpoint
|