@visualizevalue/mint-app-base 0.1.96 → 0.1.98
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.
package/components/Embed.vue
CHANGED
|
@@ -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
|
-
|
|
114
|
-
|
|
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
|
|
|
@@ -53,10 +52,12 @@ const imageLoaded = () => {
|
|
|
53
52
|
article.image {
|
|
54
53
|
overflow: hidden;
|
|
55
54
|
background-color: var(--background);
|
|
56
|
-
aspect-ratio: auto 1;
|
|
57
55
|
overflow: hidden;
|
|
58
56
|
position: relative;
|
|
59
57
|
display: flex;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
align-items: center;
|
|
60
|
+
container-type: inline-size;
|
|
60
61
|
|
|
61
62
|
.loader {
|
|
62
63
|
position: absolute;
|
|
@@ -67,9 +68,7 @@ article.image {
|
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
img {
|
|
70
|
-
|
|
71
|
-
height: auto;
|
|
72
|
-
object-fit: cover;
|
|
71
|
+
aspect-ratio: 1/1 auto;
|
|
73
72
|
object-fit: contain;
|
|
74
73
|
transform: scale(1.2);
|
|
75
74
|
opacity: 0;
|