@visualizevalue/mint-app-base 0.1.96 → 0.1.97

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.
@@ -98,20 +98,22 @@ watch(width, () => {
98
98
  <style scoped>
99
99
  .embed {
100
100
  width: 100%;
101
- min-height: 20vh;
102
- aspect-ratio: auto;
103
101
  display: grid;
104
102
  align-items: center;
105
103
  justify-content: center;
106
104
  position: relative;
107
105
  touch-action: none;
108
106
  overflow: hidden;
107
+ container-type: inline-size;
109
108
 
109
+ video,
110
110
  iframe {
111
- aspect-ratio: 1/1;
112
111
  width: 100%;
113
- height: 100%;
114
- position: absolute;
112
+ width: 100cqw;
113
+ aspect-ratio: 1/1 auto;
114
+ }
115
+
116
+ iframe {
115
117
  pointer-events: all;
116
118
  }
117
119
  }
@@ -45,7 +45,6 @@ watch(() => props.src, () => loadImage([{ isIntersecting: true }]))
45
45
  const imageLoaded = () => {
46
46
  loaded.value = true
47
47
  emit('loaded')
48
- computeAspectRatio()
49
48
  }
50
49
  </script>
51
50
 
@@ -57,6 +56,7 @@ article.image {
57
56
  overflow: hidden;
58
57
  position: relative;
59
58
  display: flex;
59
+ container-type: inline-size;
60
60
 
61
61
  .loader {
62
62
  position: absolute;
@@ -68,6 +68,7 @@ article.image {
68
68
 
69
69
  img {
70
70
  width: 100%;
71
+ width: 100cqw;
71
72
  height: auto;
72
73
  object-fit: cover;
73
74
  object-fit: contain;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visualizevalue/mint-app-base",
3
- "version": "0.1.96",
3
+ "version": "0.1.97",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "dependencies": {