@hanzo/ui 3.8.28 → 3.8.29
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.
|
@@ -51,7 +51,7 @@ const VideoBlockComponent: React.FC<BlockComponentProps & {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
const b = block as VideoBlock
|
|
54
|
-
const ar =
|
|
54
|
+
const ar = b.dim.md.w / b.dim.md.h
|
|
55
55
|
if (agent === 'phone') {
|
|
56
56
|
if (b.sizing?.mobile?.vw) {
|
|
57
57
|
// serverside, or at least while the video is loading,
|
|
@@ -122,6 +122,10 @@ const VideoBlockComponent: React.FC<BlockComponentProps & {
|
|
|
122
122
|
const videoDims = b.dim as TShirtDimensions
|
|
123
123
|
const dim = ((size && size in videoDims) ? videoDims[size] : videoDims.md) as Dimensions
|
|
124
124
|
const conDim = (constrainTo ? constrain(dim, constrainTo) : dim)
|
|
125
|
+
if (b.sources?.[0] === '/assets/commerce/silver/product/luxsilver.mp4') {
|
|
126
|
+
console.log("VIDEO BLOCK, dim: ", dim)
|
|
127
|
+
console.log("VIDEO BLOCK, const dim: ", conDim)
|
|
128
|
+
}
|
|
125
129
|
return usePoster ? (
|
|
126
130
|
<Image src={b.poster!} alt='image' width={conDim.w} height={conDim.h} className={className}/>
|
|
127
131
|
) : (
|
package/package.json
CHANGED