Skip to content

Commit

Permalink
Update to the previous pull RocketChat#1626
Browse files Browse the repository at this point in the history
>Code blocks and inline code that are preceded by RTL text will get displayed in RTL, and that breaks the formatting. This fix forces it to always display in LTR

Moved the changes to the `base.less` since it is not specific to RTL interface it also applies even if the user interface is LTR.
  • Loading branch information
fduraibi committed Dec 10, 2015
1 parent 3bb885a commit 7ea0247
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 2 additions & 0 deletions packages/rocketchat-theme/assets/stylesheets/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ code {
word-wrap: break-word;
text-align: left;
white-space: pre-wrap;
unicode-bidi: embed;
direction: ltr;
&.inline {
display: inline;
padding: 0 0.5em;
Expand Down
5 changes: 0 additions & 5 deletions packages/rocketchat-theme/assets/stylesheets/rtl.less
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@
padding-right: 0px;
}

code {
unicode-bidi: embed;
direction: ltr;
}

.side-nav {
.right(0px);
.header {
Expand Down

0 comments on commit 7ea0247

Please sign in to comment.