mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
enforce max image height
This commit is contained in:
parent
d97973ab79
commit
bf7042c423
@ -143,7 +143,7 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
const width = this.$el.offsetWidth
|
||||
const height = width / this.post.imageAspectRatio
|
||||
const height = Math.min((width / this.post.imageAspectRatio), 2000)
|
||||
const imageElement = this.$el.querySelector('.ds-card-image')
|
||||
|
||||
if (imageElement) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user