From e965c74760a6f9b6065d53d1b4bb0618b056c17b Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 1 Jul 2020 17:10:46 -0500 Subject: [PATCH] Use object-fit: contain for sane image thumbnails, fixes #212 --- app/styles/components/compose-form.scss | 2 +- app/styles/components/media-gallery.scss | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/styles/components/compose-form.scss b/app/styles/components/compose-form.scss index 0b144c700..b2d61bc22 100644 --- a/app/styles/components/compose-form.scss +++ b/app/styles/components/compose-form.scss @@ -284,7 +284,7 @@ .compose-form__upload-thumbnail { border-radius: 4px; background-position: center; - background-size: cover; + background-size: contain; background-repeat: no-repeat; height: 140px; width: 100%; diff --git a/app/styles/components/media-gallery.scss b/app/styles/components/media-gallery.scss index 431610bb6..c98d212b3 100644 --- a/app/styles/components/media-gallery.scss +++ b/app/styles/components/media-gallery.scss @@ -31,6 +31,10 @@ .still-image { height: 100%; width: 100%; + + img { + object-fit: contain; + } } .still-image--play-on-hover::before {