From 292f3692902c5f676792a53f4d29ec03f4f5da67 Mon Sep 17 00:00:00 2001 From: Jonathan Belcher Date: Thu, 10 Sep 2020 15:45:59 -0400 Subject: [PATCH] Right align rtl languages (#2332) When a line is a rtl language such as Arabic it should be aligned to the right. This PR floats it to the right. --- scss/theme.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scss/theme.scss b/scss/theme.scss index 208f0112f..f9d23b6de 100644 --- a/scss/theme.scss +++ b/scss/theme.scss @@ -88,6 +88,13 @@ display: none !important; } +/* Monaco adds the dir='ltr' attribute to rtl languages. + This does the opposite of what you think it should do. +*/ +span[dir='ltr'] { + float: right; +} + /* Safari requires that it be displayed absolute so that it takes the full height */ .note-content-editor-shell {