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

Commit

Permalink
Fix block code styling in rich text editor (#10246)
Browse files Browse the repository at this point in the history
  • Loading branch information
alunturner authored Feb 28, 2023
1 parent 2c7dfb5 commit 95223c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions res/css/views/rooms/wysiwyg_composer/components/_Editor.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit 95223c8

Please sign in to comment.