From 7ea024707df729e323df5448002723539c2f29ad Mon Sep 17 00:00:00 2001 From: Fahad Alduraibi <fadnix@gmail.com> Date: Thu, 10 Dec 2015 18:54:47 -0500 Subject: [PATCH] Update to the previous pull https://github.com/RocketChat/Rocket.Chat/pull/1626 >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. --- packages/rocketchat-theme/assets/stylesheets/base.less | 2 ++ packages/rocketchat-theme/assets/stylesheets/rtl.less | 5 ----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/rocketchat-theme/assets/stylesheets/base.less b/packages/rocketchat-theme/assets/stylesheets/base.less index 2ba3fe0465b..55ecffa41af 100644 --- a/packages/rocketchat-theme/assets/stylesheets/base.less +++ b/packages/rocketchat-theme/assets/stylesheets/base.less @@ -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; diff --git a/packages/rocketchat-theme/assets/stylesheets/rtl.less b/packages/rocketchat-theme/assets/stylesheets/rtl.less index f1671e6aad3..f81703f69b1 100644 --- a/packages/rocketchat-theme/assets/stylesheets/rtl.less +++ b/packages/rocketchat-theme/assets/stylesheets/rtl.less @@ -32,11 +32,6 @@ padding-right: 0px; } - code { - unicode-bidi: embed; - direction: ltr; - } - .side-nav { .right(0px); .header { -- GitLab