From abdc80727d8db6b611bbf9ce70c687e08fe67a66 Mon Sep 17 00:00:00 2001 From: Dries Cruyskens Date: Thu, 28 May 2020 15:15:14 +0200 Subject: [PATCH] Hero image height on post page is now set withouth having to wait for the image to load. Vue gives the image aspect ratio to css as a css variable, css then sets the correct height in fuction of the width. --- webapp/pages/post/_id/_slug/index.vue | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/webapp/pages/post/_id/_slug/index.vue b/webapp/pages/post/_id/_slug/index.vue index 9a4a796e1..c352d17b4 100644 --- a/webapp/pages/post/_id/_slug/index.vue +++ b/webapp/pages/post/_id/_slug/index.vue @@ -8,6 +8,7 @@ 'disabled-content': post.disabled, '--blur-image': blurred, }" + :style="heroImageStyle" >