From 819a6ba86ce59ff6079ca6f115b8726154a164b5 Mon Sep 17 00:00:00 2001 From: Tinuola 'Tinu' Awopetu <24995224+tinuola@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:29:34 -0800 Subject: [PATCH] fix: APPS-3042 Embedded video height in RichText (#672) fix height on mobile for embedded videos Co-authored-by: tinuola --- src/styles/default/_rich-text.scss | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/styles/default/_rich-text.scss b/src/styles/default/_rich-text.scss index 586bad1c5..5e1014bed 100644 --- a/src/styles/default/_rich-text.scss +++ b/src/styles/default/_rich-text.scss @@ -68,7 +68,8 @@ :deep(img) { height: auto; - object-fit: cover; + -o-object-fit: cover; + object-fit: cover; display: inline-block; } @@ -111,7 +112,8 @@ :deep(iframe) { width: 100%; height: 400px; - object-fit: cover; + -o-object-fit: cover; + object-fit: cover; } :deep(a) { @@ -259,8 +261,7 @@ :deep(iframe) { width: 100%; - width: 100%; - height: auto; + min-height: 100%; } :deep(blockquote) {