@meduza/ui-kit-2 0.8.704 → 0.8.801

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.
@@ -1188,9 +1188,7 @@ const EmbedBlock = ({
1188
1188
  return /*#__PURE__*/React.createElement("div", {
1189
1189
  className: styles$r.object
1190
1190
  }, /*#__PURE__*/React.createElement("div", {
1191
- className: makeClassName([[styles$r.wrapper, true]
1192
- // [styles.isYoutube, provider === 'youtube' && isProportional]
1193
- ]),
1191
+ className: styles$r.wrapper,
1194
1192
  style: style
1195
1193
  }, /*#__PURE__*/React.createElement(DangerousHTML, {
1196
1194
  className: styles$r.objectWrap,
@@ -1199,14 +1197,9 @@ const EmbedBlock = ({
1199
1197
  }
1200
1198
  }
1201
1199
  };
1202
- // if (isProportional && provider !== 'youtube') {
1203
- // style.paddingBottom = `${(block.data.height / block.data.width) * 100}%`
1204
- // style.height = 0
1205
- // } else if (isProportional && provider === 'youtube') {
1206
- // style.aspectRatio = `${block.data.width} / ${block.data.height}`
1207
- // }
1208
1200
  if (isProportional) {
1209
- style.aspectRatio = `${block.data.width} / ${block.data.height}`;
1201
+ style.paddingBottom = `${block.data.height / block.data.width * 100}%`;
1202
+ style.height = 0;
1210
1203
  }
1211
1204
  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]];
1212
1205
  // Убираем из контекста все, что не начинается с приставки isIn,
@@ -1224,9 +1217,7 @@ const EmbedBlock = ({
1224
1217
  }, children && ( /*#__PURE__*/React.createElement("div", {
1225
1218
  className: styles$r.object
1226
1219
  }, /*#__PURE__*/React.createElement("div", {
1227
- className: makeClassName([[styles$r.wrapper, true]
1228
- // [styles.isYoutube, provider === 'youtube' && isProportional]
1229
- ]),
1220
+ className: styles$r.wrapper,
1230
1221
  style: style
1231
1222
  }, /*#__PURE__*/React.createElement("div", {
1232
1223
  className: styles$r.objectWrap