@meduza/ui-kit-2 1.4.6-b → 1.4.6-c
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/ui-kit-2.cjs.development.js +2 -2
- package/dist/ui-kit-2.cjs.development.js.map +1 -1
- package/dist/ui-kit-2.cjs.production.min.js +1 -1
- package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
- package/dist/ui-kit-2.esm.js +2 -2
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/GroupedBlock/index.tsx +2 -2
package/dist/ui-kit-2.esm.js
CHANGED
|
@@ -1674,8 +1674,8 @@ const GroupedBlock = ({
|
|
|
1674
1674
|
}) => {
|
|
1675
1675
|
const maxHeight = Math.min(...block.data.map(item => item.data && item.data.height || item.item && item.item.data.height));
|
|
1676
1676
|
const normalizedBoxesWidth = block.data.map(item => {
|
|
1677
|
-
const width = item.data && item.data.width || item.item && item.item.data.
|
|
1678
|
-
const height = item.data && item.data.height || item.item && item.item.data.
|
|
1677
|
+
const width = item.data && item.data.width || item.item && item.item.data.width;
|
|
1678
|
+
const height = item.data && item.data.height || item.item && item.item.data.height;
|
|
1679
1679
|
return width / (height / maxHeight);
|
|
1680
1680
|
});
|
|
1681
1681
|
const sumWidth = normalizedBoxesWidth.reduce((sum, x) => sum + x);
|