Element-web: RTL text should be right-justified

Created on 9 Aug 2017  路  4Comments  路  Source: vector-im/element-web

If the message body contains (or at least, begins with) RTL script, it should be right-aligned in the message panel rather than left-aligned

Community PR bug i18n p1 major timeline

All 4 comments

Message panel !== RTE so I'm gonna remove the RTE label (unless this is also a problem in the composer?)

Looking into this, the following changes need to be made:

 .mx_EventTile_body {
...
+    text-align: -webkit-auto;
+    display: block;
 }

I'm not sure how this will affect all other uses of event tiles, so should be worth testing thoroughly.

Also, I wonder if the interface needs a "RTL-mode" - having the user's avatar all the way on the left seems strange when the text is aligned to the right.

2018-05-17-101653_893x278_scrot

Wouldn't it be solved by adding text-aligh: start? So it automatically and based on direction of the text will determine to align text on left or right.

Hi guys. How to fix rtl right-justified?

Screenshot from 2020-11-29 18-08-35

You can see It's left-justified.
OS: Ubuntu 20.04
App: Element Desktop

Was this page helpful?
0 / 5 - 0 ratings