@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.
@@ -2743,7 +2743,17 @@
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;
package/dist/ui-kit.css CHANGED
@@ -2743,7 +2743,17 @@
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;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.8.801",
2
+ "version": "0.9.0",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -248,13 +248,7 @@
248
248
 
249
249
  .wrapper {
250
250
  position: relative;
251
- }
252
-
253
- .wrapper .objectWrap {
254
- position: static;
255
- }
256
251
 
257
- .isYoutube {
258
252
  width: 100%;
259
253
  max-height: 70vh;
260
254
 
@@ -263,6 +257,10 @@
263
257
  }
264
258
  }
265
259
 
260
+ .wrapper .objectWrap {
261
+ position: static;
262
+ }
263
+
266
264
  /* DEVICES */
267
265
  .mobile {
268
266
  @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
 
@@ -150,13 +141,7 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
150
141
  <figure className={makeClassName(classNames)}>
151
142
  {children && (
152
143
  <div className={styles.object}>
153
- <div
154
- className={makeClassName([
155
- [styles.wrapper, true],
156
- [styles.isYoutube, provider === 'youtube' && isProportional]
157
- ])}
158
- style={style}
159
- >
144
+ <div className={styles.wrapper} style={style}>
160
145
  <div className={styles.objectWrap}>{children}</div>
161
146
  </div>
162
147
  </div>
package/src/.DS_Store DELETED
Binary file