remove code related to imageAspectRatio

This commit is contained in:
Alina Beck 2019-12-18 15:02:52 +05:30
parent 0213d64ba5
commit edaac117eb

View File

@ -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`
}
},
}
</script>
<style lang="scss">