From 75c72d00dadeca22d2b2ffef22980b4f022956fb Mon Sep 17 00:00:00 2001 From: naskya <m@naskya.net> Date: Wed, 27 Sep 2023 17:18:47 +0900 Subject: [PATCH] fix: preserve newline character in alt text popup --- packages/client/src/components/MkDialog.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/client/src/components/MkDialog.vue b/packages/client/src/components/MkDialog.vue index 3631375c8..688e4edc8 100644 --- a/packages/client/src/components/MkDialog.vue +++ b/packages/client/src/components/MkDialog.vue @@ -54,7 +54,11 @@ <Mfm :text="i18n.ts.password" /> </header> <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" /> </div> <MkInput