@meduza/ui-kit-2 0.8.702 → 0.8.704

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.
@@ -2743,23 +2743,30 @@
2743
2743
 
2744
2744
  .EmbedBlock-module_wrapper__ynT7R {
2745
2745
  position: relative;
2746
+
2747
+ width: 100%;
2748
+ max-height: 70vh;
2749
+ }
2750
+
2751
+ @media only screen and (min-width: 40.625em) {
2752
+
2753
+ .EmbedBlock-module_wrapper__ynT7R {
2754
+ max-height: 90vh;
2746
2755
  }
2756
+ }
2747
2757
 
2748
2758
  .EmbedBlock-module_wrapper__ynT7R .EmbedBlock-module_objectWrap__qpbni {
2749
2759
  position: static;
2750
2760
  }
2751
2761
 
2752
- .EmbedBlock-module_isYoutube__WpBkS {
2762
+ /* .isYoutube {
2753
2763
  width: 100%;
2754
2764
  max-height: 70vh;
2755
- }
2756
2765
 
2757
- @media only screen and (min-width: 40.625em) {
2758
-
2759
- .EmbedBlock-module_isYoutube__WpBkS {
2766
+ @media $landscapeTablet {
2760
2767
  max-height: 90vh;
2761
- }
2762
2768
  }
2769
+ } */
2763
2770
 
2764
2771
  /* DEVICES */
2765
2772
 
package/dist/ui-kit.css CHANGED
@@ -2743,23 +2743,30 @@
2743
2743
 
2744
2744
  .EmbedBlock-module_wrapper__ynT7R {
2745
2745
  position: relative;
2746
+
2747
+ width: 100%;
2748
+ max-height: 70vh;
2749
+ }
2750
+
2751
+ @media only screen and (min-width: 64em) {
2752
+
2753
+ .EmbedBlock-module_wrapper__ynT7R {
2754
+ max-height: 90vh;
2746
2755
  }
2756
+ }
2747
2757
 
2748
2758
  .EmbedBlock-module_wrapper__ynT7R .EmbedBlock-module_objectWrap__qpbni {
2749
2759
  position: static;
2750
2760
  }
2751
2761
 
2752
- .EmbedBlock-module_isYoutube__WpBkS {
2762
+ /* .isYoutube {
2753
2763
  width: 100%;
2754
2764
  max-height: 70vh;
2755
- }
2756
2765
 
2757
- @media only screen and (min-width: 64em) {
2758
-
2759
- .EmbedBlock-module_isYoutube__WpBkS {
2766
+ @media $landscapeTablet {
2760
2767
  max-height: 90vh;
2761
- }
2762
2768
  }
2769
+ } */
2763
2770
 
2764
2771
  /* DEVICES */
2765
2772
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.8.702",
2
+ "version": "0.8.704",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -248,20 +248,27 @@
248
248
 
249
249
  .wrapper {
250
250
  position: relative;
251
+
252
+ width: 100%;
253
+ max-height: 70vh;
254
+
255
+ @media $landscapeTablet {
256
+ max-height: 90vh;
257
+ }
251
258
  }
252
259
 
253
260
  .wrapper .objectWrap {
254
261
  position: static;
255
262
  }
256
263
 
257
- .isYoutube {
264
+ /* .isYoutube {
258
265
  width: 100%;
259
266
  max-height: 70vh;
260
267
 
261
268
  @media $landscapeTablet {
262
269
  max-height: 90vh;
263
270
  }
264
- }
271
+ } */
265
272
 
266
273
  /* DEVICES */
267
274
  .mobile {
@@ -98,7 +98,13 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
98
98
  default: {
99
99
  return (
100
100
  <div className={styles.object}>
101
- <div className={styles.wrapper} style={style}>
101
+ <div
102
+ className={makeClassName([
103
+ [styles.wrapper, true]
104
+ // [styles.isYoutube, provider === 'youtube' && isProportional]
105
+ ])}
106
+ style={style}
107
+ >
102
108
  <DangerousHTML className={styles.objectWrap} html={html} />
103
109
  </div>
104
110
  </div>
@@ -107,10 +113,14 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
107
113
  }
108
114
  }
109
115
 
110
- if (isProportional && provider !== 'youtube') {
111
- style.paddingBottom = `${(block.data.height / block.data.width) * 100}%`
112
- style.height = 0
113
- } else if (isProportional && provider === 'youtube') {
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') {
120
+ // style.aspectRatio = `${block.data.width} / ${block.data.height}`
121
+ // }
122
+
123
+ if (isProportional) {
114
124
  style.aspectRatio = `${block.data.width} / ${block.data.height}`
115
125
  }
116
126
 
@@ -146,8 +156,8 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
146
156
  <div className={styles.object}>
147
157
  <div
148
158
  className={makeClassName([
149
- [styles.wrapper, true],
150
- [styles.isYoutube, true]
159
+ [styles.wrapper, true]
160
+ // [styles.isYoutube, provider === 'youtube' && isProportional]
151
161
  ])}
152
162
  style={style}
153
163
  >