@meduza/ui-kit-2 0.8.801 → 0.9.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.
@@ -1202,8 +1202,7 @@ const EmbedBlock = ({
1202
1202
  }
1203
1203
  };
1204
1204
  if (isProportional) {
1205
- style.paddingBottom = `${block.data.height / block.data.width * 100}%`;
1206
- style.height = 0;
1205
+ style.aspectRatio = `${block.data.width} / ${block.data.height}`;
1207
1206
  }
1208
1207
  let classNames = [[styles$r.root, true], [styles$r.cc, cc], [styles$r[display], !!display && styles$r[display]], [styles$r[provider], !!provider && !!styles$r[provider]], [styles$r[onlyOn], !!onlyOn && styles$r[onlyOn]], [styles$r.mobileFullwidth, mobileFullwidth], [styles$r.proportional, isProportional]];
1209
1208
  // Убираем из контекста все, что не начинается с приставки isIn,