@cntrl-site/sdk-nextjs 1.0.17 → 1.0.18
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/README.md
CHANGED
|
Binary file
|
package/lib/components/Item.js
CHANGED
|
@@ -113,7 +113,7 @@ const Item = ({ item, sectionId, articleHeight, isInGroup = false }) => {
|
|
|
113
113
|
: `${dimensions.width * 100}vw`
|
|
114
114
|
: 'max-content'}`,
|
|
115
115
|
height: `${sizingAxis.y === 'manual' ? `${dimensions.height * 100}vw` : 'unset'}`
|
|
116
|
-
} : {})), (scale !== undefined ? { transform: `scale(${scale})
|
|
116
|
+
} : {})), (scale !== undefined ? { transform: `scale(${scale})`, 'WebkitTransform': `scale(${scale})` } : {})), children: (0, jsx_runtime_1.jsx)(ItemComponent, { item: item, sectionId: sectionId, onResize: handleItemResize, articleHeight: articleHeight }) }) }) }), (0, jsx_runtime_1.jsx)(style_1.default, { id: id, children: `
|
|
117
117
|
${(0, sdk_1.getLayoutStyles)(layouts, layoutValues, ([area, hidden, hoverParams, sticky, sectionHeight, layoutParams], exemplary) => {
|
|
118
118
|
const sizingAxis = parseSizing(layoutParams.sizing);
|
|
119
119
|
const isScreenBasedBottom = area.positionType === sdk_1.PositionType.ScreenBased && area.anchorSide === sdk_1.AnchorSide.Bottom;
|
package/package.json
CHANGED
package/src/components/Item.tsx
CHANGED
|
@@ -161,7 +161,7 @@ export const Item: FC<ItemWrapperProps> = ({ item, sectionId, articleHeight, isI
|
|
|
161
161
|
: `${dimensions.width * 100}vw`
|
|
162
162
|
: 'max-content'}`,
|
|
163
163
|
height: `${sizingAxis.y === 'manual' ? `${dimensions.height * 100}vw` : 'unset'}` } : {}),
|
|
164
|
-
...(scale !== undefined ? { transform: `scale(${scale})
|
|
164
|
+
...(scale !== undefined ? { transform: `scale(${scale})`, 'WebkitTransform': `scale(${scale})` } : {}),
|
|
165
165
|
}}
|
|
166
166
|
>
|
|
167
167
|
<ItemComponent item={item} sectionId={sectionId} onResize={handleItemResize} articleHeight={articleHeight} />
|