Skip to content

A platform for community discussion. Free, open, simple.

FIX: Vertically center youtube thumbnails in lazy-videos (#20914)

Jan Cernikaf98df8cb9a3
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,