From edaac117ebde6ca7a6af37897f39850a47329e8d Mon Sep 17 00:00:00 2001 From: Alina Beck Date: Wed, 18 Dec 2019 15:02:52 +0530 Subject: [PATCH] remove code related to imageAspectRatio --- webapp/components/PostCard/PostCard.vue | 9 --------- 1 file changed, 9 deletions(-) diff --git a/webapp/components/PostCard/PostCard.vue b/webapp/components/PostCard/PostCard.vue index 28588a277..fd1af7322 100644 --- a/webapp/components/PostCard/PostCard.vue +++ b/webapp/components/PostCard/PostCard.vue @@ -146,15 +146,6 @@ export default { this.$emit('unpinPost', post) }, }, - mounted() { - const width = this.$el.offsetWidth - const height = Math.min(width / this.post.imageAspectRatio) - const imageElement = this.$el.querySelector('.ds-card-image') - - if (imageElement) { - imageElement.style.height = `${height}px` - } - }, }