fix: preserve newline character in alt text popup

This commit is contained in:
naskya 2023-09-27 17:18:47 +09:00
parent 1d1dab5b2a
commit 75c72d00da
No known key found for this signature in database
GPG Key ID: 164DFF24E2D40139

View File

@ -54,7 +54,11 @@
<Mfm :text="i18n.ts.password" /> <Mfm :text="i18n.ts.password" />
</header> </header>
<div v-if="text" :class="$style.text"> <div v-if="text" :class="$style.text">
<span v-if="isPlaintext === true">{{ text }}</span> <span
v-if="isPlaintext === true"
style="white-space: pre-line"
>{{ text }}</span
>
<Mfm v-else :text="text" /> <Mfm v-else :text="text" />
</div> </div>
<MkInput <MkInput