From 113b7f056cc7d3f72fd95805734aae0bd10455d1 Mon Sep 17 00:00:00 2001 From: Ignacio Pascual <4764217+ignapas@users.noreply.github.com> Date: Tue, 26 Apr 2022 16:55:06 +0200 Subject: [PATCH] vertically center thumbnails for events section in news&events --- components/EventCard/EventCard.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/EventCard/EventCard.vue b/components/EventCard/EventCard.vue index 9518ee8e..efee2f6d 100644 --- a/components/EventCard/EventCard.vue +++ b/components/EventCard/EventCard.vue @@ -120,10 +120,13 @@ export default { img { display: block; height: auto; - left: 0; + width: 100%; position: absolute; top: 0; - width: 100%; + right: 0; + bottom: 0; + left: 0; + margin: auto; } div { position: absolute;