From 95223c87feca23559269c16844826e0bcf4ab2a8 Mon Sep 17 00:00:00 2001 From: alunturner <56027671+alunturner@users.noreply.github.com> Date: Tue, 28 Feb 2023 10:08:53 +0000 Subject: [PATCH] Fix block code styling in rich text editor (#10246) --- .../rooms/wysiwyg_composer/components/_Editor.pcss | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/res/css/views/rooms/wysiwyg_composer/components/_Editor.pcss b/res/css/views/rooms/wysiwyg_composer/components/_Editor.pcss index 51a213192ca..a2c66202a4e 100644 --- a/res/css/views/rooms/wysiwyg_composer/components/_Editor.pcss +++ b/res/css/views/rooms/wysiwyg_composer/components/_Editor.pcss @@ -88,17 +88,17 @@ limitations under the License. border-radius: 2px; } - code { + code:not(pre *) { font-family: $monospace-font-family !important; background-color: $inlinecode-background-color; border: 1px solid $inlinecode-border-color; border-radius: 4px; padding: $spacing-2; - } - code:empty { - border: unset; - padding: unset; + &:empty { + border: unset; + padding: unset; + } } }