@meduza/ui-kit-2 1.0.1 → 1.0.3

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.
@@ -2590,6 +2590,10 @@
2590
2590
  height: 100%;
2591
2591
  }
2592
2592
 
2593
+ .EmbedBlock-module_proportional__zDPfm .EmbedBlock-module_isDefaultVideo__UTW9Q video {
2594
+ position: static;
2595
+ }
2596
+
2593
2597
  .EmbedBlock-module_objectWrap__qpbni img,
2594
2598
  .EmbedBlock-module_objectWrap__qpbni video {
2595
2599
  width: 100%;
package/dist/ui-kit.css CHANGED
@@ -2590,6 +2590,10 @@
2590
2590
  height: 100%;
2591
2591
  }
2592
2592
 
2593
+ .EmbedBlock-module_proportional__zDPfm .EmbedBlock-module_isDefaultVideo__UTW9Q video {
2594
+ position: static;
2595
+ }
2596
+
2593
2597
  .EmbedBlock-module_objectWrap__qpbni img,
2594
2598
  .EmbedBlock-module_objectWrap__qpbni video {
2595
2599
  width: 100%;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.1",
2
+ "version": "1.0.3",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -65,6 +65,10 @@
65
65
  height: 100%;
66
66
  }
67
67
 
68
+ .proportional .isDefaultVideo video {
69
+ position: static;
70
+ }
71
+
68
72
  .objectWrap img,
69
73
  .objectWrap video {
70
74
  width: 100%;
@@ -102,8 +102,18 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
102
102
  if (platform === 'mirror' && videoFileUrl) {
103
103
  return (
104
104
  <div className={styles.object}>
105
- <div className={styles.objectWrap}>
106
- <video src={videoFileUrl} controls />
105
+ <div
106
+ className={makeClassName([
107
+ [styles.objectWrap, true],
108
+ [styles.isDefaultVideo, true]
109
+ ])}
110
+ >
111
+ <video
112
+ src={videoFileUrl}
113
+ controls
114
+ playsInline
115
+ preload="metadata"
116
+ />
107
117
  </div>
108
118
  </div>
109
119
  )