From af98df8cb9a358e0a467f5172e22b052d07f9983 Mon Sep 17 00:00:00 2001 From: Jan Cernik <66427541+jancernik@users.noreply.github.com> Date: Fri, 31 Mar 2023 09:41:58 -0300 Subject: [PATCH] FIX: Vertically center youtube thumbnails in lazy-videos (#20914) --- .../assets/stylesheets/lazy-videos.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/discourse-lazy-videos/assets/stylesheets/lazy-videos.scss b/plugins/discourse-lazy-videos/assets/stylesheets/lazy-videos.scss index 1877a9ddaec..979624ccaa9 100644 --- a/plugins/discourse-lazy-videos/assets/stylesheets/lazy-videos.scss +++ b/plugins/discourse-lazy-videos/assets/stylesheets/lazy-videos.scss @@ -17,6 +17,11 @@ object-fit: cover; width: 100%; pointer-events: none; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + max-height: 100%; } &:hover,