logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/
commit: bbef4e40dffd012dafed71e6efff5c05e7308c3e
parent bb0a7a81c5c5e9947471ccffff629af9ee6d6185
Author: Alexander Tumin <iamtakingiteasy@eientei.org>
Date:   Mon,  7 Oct 2024 13:39:36 +0300

Fix whitespaces for multiple status mute reasons, display bot status reason

Diffstat:

Achangelog.d/multiple-status-mute-reasons.fix1+
Msrc/components/notification/notification.scss1+
Msrc/components/status/status.scss1+
Msrc/components/status/status.vue15+++++++++++----
Msrc/i18n/en.json1+
5 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/changelog.d/multiple-status-mute-reasons.fix b/changelog.d/multiple-status-mute-reasons.fix @@ -0,0 +1 @@ +Fix whitespaces for multiple status mute reasons, display bot status reason diff --git a/src/components/notification/notification.scss b/src/components/notification/notification.scss @@ -26,6 +26,7 @@ overflow: hidden; display: flex; flex-wrap: nowrap; + gap: 1ex; & .status-username, & .mute-thread, diff --git a/src/components/status/status.scss b/src/components/status/status.scss @@ -281,6 +281,7 @@ overflow: hidden; display: flex; flex-wrap: nowrap; + gap: 1ex; & .status-username, & .mute-thread, diff --git a/src/components/status/status.vue b/src/components/status/status.vue @@ -37,16 +37,23 @@ {{ $t('status.sensitive_muted') }} </small> <small - v-if="showReasonMutedThread" + v-if="muteBotStatuses && botStatus" class="mute-thread" > - {{ $t('status.thread_muted') }} + {{ $t('status.bot_muted') }} </small> <small - v-if="showReasonMutedThread && muteWordHits.length > 0" + v-if="showReasonMutedThread" class="mute-thread" > - {{ $t('status.thread_muted_and_words') }} + <span> + {{ $t('status.thread_muted') }} + </span> + <span + v-if="muteWordHits.length > 0" + > + {{ $t('status.thread_muted_and_words') }} + </span> </small> <small class="mute-words" diff --git a/src/i18n/en.json b/src/i18n/en.json @@ -1151,6 +1151,7 @@ "thread_muted": "Thread muted", "thread_muted_and_words": ", has words:", "sensitive_muted": "Muting sensitive content", + "bot_muted": "Muting bot content", "show_full_subject": "Show full subject", "hide_full_subject": "Hide full subject", "show_content": "Show content",