From ebbb20d0e3d6d4795dfaf53aece54cce7e041380 Mon Sep 17 00:00:00 2001 From: Lucas Bigot Date: Thu, 28 Mar 2024 10:51:31 -0400 Subject: [PATCH] Set iframe full width if no width & height specific html attributes --- assets/styles/components/_wysiwyg.scss | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/assets/styles/components/_wysiwyg.scss b/assets/styles/components/_wysiwyg.scss index fa7b25c..9755ec6 100644 --- a/assets/styles/components/_wysiwyg.scss +++ b/assets/styles/components/_wysiwyg.scss @@ -97,8 +97,13 @@ // iFrame // ========================================================================== iframe { - width: 100%; - height: auto; + &:not([width]) { + width: 100%; + } + + &:not([height]) { + height: auto; + } } // ==========================================================================