Skip to content

Commit

Permalink
Right align rtl languages (#2332)
Browse files Browse the repository at this point in the history
When a line is a rtl language such as Arabic it should be aligned to the right. This PR floats it to the right.
  • Loading branch information
belcherj authored Sep 10, 2020
1 parent 7177d7e commit 292f369
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scss/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 292f369

Please sign in to comment.