summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-05-18 14:01:47 -0400
committerHazelnoot <acomputerdog@gmail.com>2025-05-18 14:01:47 -0400
commit10a2f32947f1cae4e6bdf2e573f72c3f9c8d9c1f (patch)
treeeb1faf9039abbbe16086e9166779c252af13b578
parentmerge: set transparent background for naked containers - fix 1063 (!1033) (diff)
downloadsharkey-10a2f32947f1cae4e6bdf2e573f72c3f9c8d9c1f.tar.gz
sharkey-10a2f32947f1cae4e6bdf2e573f72c3f9c8d9c1f.tar.bz2
sharkey-10a2f32947f1cae4e6bdf2e573f72c3f9c8d9c1f.zip
fix spurious "translation failed" errors in MkNoteSub
-rw-r--r--packages/frontend/src/components/MkSubNoteContent.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkSubNoteContent.vue b/packages/frontend/src/components/MkSubNoteContent.vue
index e2a8ee4fe6..792ad560b9 100644
--- a/packages/frontend/src/components/MkSubNoteContent.vue
+++ b/packages/frontend/src/components/MkSubNoteContent.vue
@@ -12,11 +12,11 @@ SPDX-License-Identifier: AGPL-3.0-only
<Mfm v-if="note.text" :text="note.text" :isBlock="true" :author="note.user" :nyaize="'respect'" :isAnim="allowAnim" :emojiUrls="note.emojis"/>
<MkButton v-if="!allowAnim && animated && !hideFiles" :class="$style.playMFMButton" :small="true" @click="animatedMFM()" @click.stop><i class="ph-play ph-bold ph-lg "></i> {{ i18n.ts._animatedMFM.play }}</MkButton>
<MkButton v-else-if="!prefer.s.animatedMfm && allowAnim && animated && !hideFiles" :class="$style.playMFMButton" :small="true" @click="animatedMFM()" @click.stop><i class="ph-stop ph-bold ph-lg "></i> {{ i18n.ts._animatedMFM.stop }}</MkButton>
- <div v-if="note.text && translating || note.text && translation != null" :class="$style.translation">
+ <div v-if="translating || translation != null" :class="$style.translation">
<MkLoading v-if="translating" mini/>
<div v-else-if="translation && translation.text != null">
<b>{{ i18n.tsx.translatedFrom({ x: translation.sourceLang }) }}: </b>
- <Mfm :text="translation.text" :isBlock="true" :author="note.user" :nyaize="'respect'" :emojiUrls="note.emojis"/>
+ <Mfm :text="translation.text" :isBlock="true" :author="note.user" :nyaize="'respect'" :emojiUrls="note.emojis" class="_selectable"/>
</div>
<div v-else>{{ i18n.ts.translationFailed }}</div>
</div>