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; + } } }