Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 95223c8

Browse files
authored
Fix block code styling in rich text editor (#10246)
1 parent 2c7dfb5 commit 95223c8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

res/css/views/rooms/wysiwyg_composer/components/_Editor.pcss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,17 @@ limitations under the License.
8888
border-radius: 2px;
8989
}
9090

91-
code {
91+
code:not(pre *) {
9292
font-family: $monospace-font-family !important;
9393
background-color: $inlinecode-background-color;
9494
border: 1px solid $inlinecode-border-color;
9595
border-radius: 4px;
9696
padding: $spacing-2;
97-
}
9897

99-
code:empty {
100-
border: unset;
101-
padding: unset;
98+
&:empty {
99+
border: unset;
100+
padding: unset;
101+
}
102102
}
103103
}
104104

0 commit comments

Comments
 (0)