cinny icon indicating copy to clipboard operation
cinny copied to clipboard

Fix direction for RTL-LTR mixed text

Open kfiven opened this issue 3 years ago • 2 comments

if you write a RTL message and include a code snippet in it. The code snippet also gets RTL direction styling.

When a code snippet is sent with LTR language: code snippet is sent with LTR language

When a code snippet is sent with RTL language: code snippet is sent with RTL language

Originally posted by @anyone00 in https://github.com/cinnyapp/cinny/issues/717#issuecomment-1209525848

kfiven avatar Aug 09 '22 15:08 kfiven

From my short testing adding a direction: initial in https://github.com/cinnyapp/cinny/blob/9f99320fdad1a89387057dcd6ddb9b995a65d3dd/src/app/molecules/message/Message.scss#L384-L389 fixes the bug. But please let me know if it works for you too.

anyone00 avatar Aug 09 '22 16:08 anyone00

you can test https://github.com/cinnyapp/cinny/pull/735 in #test-rtl:matrix.org

Preview: 62f291ac3de8d11f3fedd3d5--pr-cinny.netlify.app ⚠️ Exercise caution. Use test accounts. ⚠️

anyone00 avatar Aug 09 '22 18:08 anyone00