From a92ca8f3d0f86faf376b23b9770f8c2cf5fce9a6 Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Sat, 23 Nov 2024 19:58:45 -0600 Subject: [PATCH] Fix lightbox video styles Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com> --- stylesheets/components/Lightbox.scss | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/stylesheets/components/Lightbox.scss b/stylesheets/components/Lightbox.scss index cd97e792eb37..0c766edd1690 100644 --- a/stylesheets/components/Lightbox.scss +++ b/stylesheets/components/Lightbox.scss @@ -95,6 +95,13 @@ } &__object { + height: auto; + max-height: 100%; + max-width: 100%; + object-fit: contain; + outline: none; + width: auto; + &--container { display: inline-flex; flex-grow: 1; @@ -122,15 +129,6 @@ width: calc(100% - 80px); } } - - & { - height: auto; - max-height: 100%; - max-width: 100%; - object-fit: contain; - outline: none; - width: auto; - } } &__unsupported {