This commit is contained in:
syuilo
2024-08-27 08:32:22 +09:00
parent 00025b0f76
commit a3a3404398
5 changed files with 117 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<div>
<p v-if="note.cw != null" :class="$style.cw">
<Mfm v-if="note.cw != ''" style="margin-right: 8px;" :text="note.cw" :author="note.user" :nyaize="'respect'" :emojiUrls="note.emojis"/>
<EmCwButton v-model="showContent" :text="note.text" :files="note.files" :poll="note.poll"/>
<EmButton rounded full small @click="showContent = !showContent">{{ showContent ? i18n.ts._cw.hide : i18n.ts._cw.show }}</EmButton>
</p>
<div v-show="note.cw == null || showContent">
<EmSubNoteContent :class="$style.text" :note="note"/>
@@ -26,7 +26,6 @@ import { ref } from 'vue';
import * as Misskey from 'misskey-js';
import EmNoteHeader from '@/components/EmNoteHeader.vue';
import EmSubNoteContent from '@/components/EmSubNoteContent.vue';
import EmCwButton from '@/components/EmCwButton.vue';
const props = defineProps<{
note: Misskey.entities.Note;