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/mastodon/features/compose/components/reply_indicator.js | |
parent | 1045549f85041b13002801808b30a332c3a68c61 (diff) |
Change RTL detection to rely on unicode-bidi paragraph by paragraph (#14573)
Diffstat (limited to 'app/javascript/mastodon/features/compose/components/reply_indicator.js')
-rw-r--r-- | app/javascript/mastodon/features/compose/components/reply_indicator.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/javascript/mastodon/features/compose/components/reply_indicator.js b/app/javascript/mastodon/features/compose/components/reply_indicator.js index 66dc85742..856383893 100644 --- a/app/javascript/mastodon/features/compose/components/reply_indicator.js +++ b/app/javascript/mastodon/features/compose/components/reply_indicator.js @@ -6,7 +6,6 @@ import IconButton from '../../../components/icon_button'; import DisplayName from '../../../components/display_name'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; -import { isRtl } from '../../../rtl'; import AttachmentList from 'mastodon/components/attachment_list'; const messages = defineMessages({ @@ -45,9 +44,6 @@ class ReplyIndicator extends ImmutablePureComponent { } const content = { __html: status.get('contentHtml') }; - const style = { - direction: isRtl(status.get('search_index')) ? 'rtl' : 'ltr', - }; return ( <div className='reply-indicator'> @@ -60,7 +56,7 @@ class ReplyIndicator extends ImmutablePureComponent { </a> </div> - <div className='reply-indicator__content' style={style} dangerouslySetInnerHTML={content} /> + <div className='reply-indicator__content' dangerouslySetInnerHTML={content} /> {status.get('media_attachments').size > 0 && ( <AttachmentList |