@meduza/ui-kit-2 0.8.801 → 0.9.1

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.
@@ -2745,6 +2745,18 @@
2745
2745
  position: relative;
2746
2746
  }
2747
2747
 
2748
+ .EmbedBlock-module_wrapper__ynT7R.EmbedBlock-module_isProportional__x8-8g {
2749
+ width: 100%;
2750
+ max-height: 70vh;
2751
+ }
2752
+
2753
+ @media only screen and (min-width: 40.625em) {
2754
+
2755
+ .EmbedBlock-module_wrapper__ynT7R.EmbedBlock-module_isProportional__x8-8g {
2756
+ max-height: 90vh;
2757
+ }
2758
+ }
2759
+
2748
2760
  .EmbedBlock-module_wrapper__ynT7R .EmbedBlock-module_objectWrap__qpbni {
2749
2761
  position: static;
2750
2762
  }
package/dist/ui-kit.css CHANGED
@@ -2745,6 +2745,18 @@
2745
2745
  position: relative;
2746
2746
  }
2747
2747
 
2748
+ .EmbedBlock-module_wrapper__ynT7R.EmbedBlock-module_isProportional__x8-8g {
2749
+ width: 100%;
2750
+ max-height: 70vh;
2751
+ }
2752
+
2753
+ @media only screen and (min-width: 64em) {
2754
+
2755
+ .EmbedBlock-module_wrapper__ynT7R.EmbedBlock-module_isProportional__x8-8g {
2756
+ max-height: 90vh;
2757
+ }
2758
+ }
2759
+
2748
2760
  .EmbedBlock-module_wrapper__ynT7R .EmbedBlock-module_objectWrap__qpbni {
2749
2761
  position: static;
2750
2762
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.8.801",
2
+ "version": "0.9.1",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -250,11 +250,7 @@
250
250
  position: relative;
251
251
  }
252
252
 
253
- .wrapper .objectWrap {
254
- position: static;
255
- }
256
-
257
- .isYoutube {
253
+ .wrapper.isProportional {
258
254
  width: 100%;
259
255
  max-height: 70vh;
260
256
 
@@ -263,6 +259,10 @@
263
259
  }
264
260
  }
265
261
 
262
+ .wrapper .objectWrap {
263
+ position: static;
264
+ }
265
+
266
266
  /* DEVICES */
267
267
  .mobile {
268
268
  @media $mobile {
@@ -98,13 +98,7 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
98
98
  default: {
99
99
  return (
100
100
  <div className={styles.object}>
101
- <div
102
- className={makeClassName([
103
- [styles.wrapper, true],
104
- [styles.isYoutube, provider === 'youtube' && isProportional]
105
- ])}
106
- style={style}
107
- >
101
+ <div className={styles.wrapper} style={style}>
108
102
  <DangerousHTML className={styles.objectWrap} html={html} />
109
103
  </div>
110
104
  </div>
@@ -113,10 +107,7 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
113
107
  }
114
108
  }
115
109
 
116
- if (isProportional && provider !== 'youtube') {
117
- style.paddingBottom = `${(block.data.height / block.data.width) * 100}%`
118
- style.height = 0
119
- } else if (isProportional && provider === 'youtube') {
110
+ if (isProportional) {
120
111
  style.aspectRatio = `${block.data.width} / ${block.data.height}`
121
112
  }
122
113
 
@@ -153,7 +144,7 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
153
144
  <div
154
145
  className={makeClassName([
155
146
  [styles.wrapper, true],
156
- [styles.isYoutube, provider === 'youtube' && isProportional]
147
+ [styles.isProportional, isProportional]
157
148
  ])}
158
149
  style={style}
159
150
  >
package/src/.DS_Store DELETED
Binary file