From bf7042c42346c3111f02b2cbcc069820912390b8 Mon Sep 17 00:00:00 2001 From: Alina Beck Date: Mon, 2 Dec 2019 16:14:18 +0300 Subject: [PATCH] enforce max image height --- webapp/components/PostCard/PostCard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/components/PostCard/PostCard.vue b/webapp/components/PostCard/PostCard.vue index 7eac71b32..f42fafdd7 100644 --- a/webapp/components/PostCard/PostCard.vue +++ b/webapp/components/PostCard/PostCard.vue @@ -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) {