Commit 5f1e748b authored by Emiliano Balbuena's avatar Emiliano Balbuena

(fix): Set video dimensions correctly

1 merge request!571(fix): Minds Pro staging feedback
Pipeline #84491662 running with stages
......@@ -139,8 +139,8 @@ export class MediaModalComponent implements OnInit, OnDestroy {
switch (this.entity.custom_type) {
case 'video':
this.contentType = 'video';
this.entity.width = this.entity.custom_data.width;
this.entity.height = this.entity.custom_data.height;
this.entity.width = this.entity.custom_data.dimensions.width;
this.entity.height = this.entity.custom_data.dimensions.height;
this.entity.thumbnail_src = this.entity.custom_data.thumbnail_src;
break;
case 'batch':
......
......@@ -117,8 +117,7 @@ export class ProTileComponent {
}
if (this.getEntityType(this.entity) === 'object:video') {
this.entity.width = this.videoDimensions.width;
this.entity.height = this.videoDimensions.height;
this.entity.dimensions = this.videoDimensions;
} else if (this.getEntityType(this.entity) === 'object:image') {
// Image
// Set image dimensions if they're not already there
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment