From 44d0ba096a4888db0ac8462acc8c061aa8d9182a Mon Sep 17 00:00:00 2001 From: noellabo Date: Sat, 19 Dec 2020 10:14:10 +0900 Subject: [PATCH] fix rtl in quote_indicator --- .../mastodon/features/compose/components/quote_indicator.js | 6 +----- app/views/statuses/_quote_status.html.haml | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/javascript/mastodon/features/compose/components/quote_indicator.js b/app/javascript/mastodon/features/compose/components/quote_indicator.js index a48289de2..1d4c6a341 100644 --- a/app/javascript/mastodon/features/compose/components/quote_indicator.js +++ b/app/javascript/mastodon/features/compose/components/quote_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 QuoteIndicator extends ImmutablePureComponent { } const content = { __html: status.get('contentHtml') }; - const style = { - direction: isRtl(status.get('search_index')) ? 'rtl' : 'ltr', - }; return (
@@ -60,7 +56,7 @@ class QuoteIndicator extends ImmutablePureComponent {
-
+
{status.get('media_attachments').size > 0 && ( ('margin-bottom: 0' unless current_account&.user&.setting_expand_spoilers) }< %span.p-summary> #{Formatter.instance.format_spoiler(status)}  %button.status__content__spoiler-link= t('statuses.show_more') - .e-content{ lang: status.language, style: "display: #{!current_account&.user&.setting_expand_spoilers && status.spoiler_text? ? 'none' : 'block'}; direction: #{rtl_status?(status) ? 'rtl' : 'ltr'}" } + .e-content{ lang: status.language, style: "display: #{!current_account&.user&.setting_expand_spoilers && status.spoiler_text? ? 'none' : 'block'}" } = Formatter.instance.format_in_quote(status, custom_emojify: true) - if !status.media_attachments.empty?