mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
remove code related to imageAspectRatio
This commit is contained in:
parent
0213d64ba5
commit
edaac117eb
@ -146,15 +146,6 @@ export default {
|
|||||||
this.$emit('unpinPost', post)
|
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>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user