diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-12-15 12:56:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-15 12:56:43 +0100 |
commit | 1f564051b6b447e3663852c482982b3ff5a2f238 (patch) | |
tree | 97e9d7b5d77971e1ad9013247e4c64b1c3a3b58d /app/javascript/styles | |
parent | 1045549f85041b13002801808b30a332c3a68c61 (diff) |
Change RTL detection to rely on unicode-bidi paragraph by paragraph (#14573)
Diffstat (limited to 'app/javascript/styles')
-rw-r--r-- | app/javascript/styles/mailer.scss | 12 | ||||
-rw-r--r-- | app/javascript/styles/mastodon/components.scss | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/app/javascript/styles/mailer.scss b/app/javascript/styles/mailer.scss index e25a80c04..55ebd3091 100644 --- a/app/javascript/styles/mailer.scss +++ b/app/javascript/styles/mailer.scss @@ -58,6 +58,16 @@ td { vertical-align: top; } +.auto-dir { + p { + unicode-bidi: plaintext; + } + + a { + unicode-bidi: isolate; + } +} + .email-table, .content-section, .column, @@ -96,7 +106,7 @@ body { .col-3, .col-4, .col-5, -.col-6, { +.col-6 { font-size: 0; display: inline-block; width: 100%; diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index 2fc1c12de..22bf025fb 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -831,6 +831,7 @@ p { margin-bottom: 20px; white-space: pre-wrap; + unicode-bidi: plaintext; &:last-child { margin-bottom: 0; @@ -840,6 +841,7 @@ a { color: $secondary-text-color; text-decoration: none; + unicode-bidi: isolate; &:hover { text-decoration: underline; |