summaryrefslogtreecommitdiff
path: root/packages/frontend/src
diff options
context:
space:
mode:
authorかっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>2024-09-20 21:05:20 +0900
committerGitHub <noreply@github.com>2024-09-20 21:05:20 +0900
commit7e9d54fa3a0f32e3ed9b98e352b74ebb720b5ab8 (patch)
treedec898b760d0cfb5614ec085f3ebd2f8fba10854 /packages/frontend/src
parentenhance: ユーザーコンテンツのインポート操作の実行可否... (diff)
downloadmisskey-7e9d54fa3a0f32e3ed9b98e352b74ebb720b5ab8.tar.gz
misskey-7e9d54fa3a0f32e3ed9b98e352b74ebb720b5ab8.tar.bz2
misskey-7e9d54fa3a0f32e3ed9b98e352b74ebb720b5ab8.zip
fix(frontend): ファイルの詳細ページのファイルの説明で改行が正しく表示されない問題を修正 (#14588)
* upd: don't ignore new lines on file info * Update Changelog * :v: --------- Co-authored-by: Marie <github@yuugi.dev>
Diffstat (limited to 'packages/frontend/src')
-rw-r--r--packages/frontend/src/pages/drive.file.info.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/frontend/src/pages/drive.file.info.vue b/packages/frontend/src/pages/drive.file.info.vue
index ffedaf27bf..12ebbbe3ff 100644
--- a/packages/frontend/src/pages/drive.file.info.vue
+++ b/packages/frontend/src/pages/drive.file.info.vue
@@ -45,7 +45,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkKeyValue>
</button>
<button class="_button" :class="$style.kvEditBtn" @click="describe()">
- <MkKeyValue>
+ <MkKeyValue :class="$style.multiline">
<template #key>{{ i18n.ts.description }}</template>
<template #value>{{ file.comment ? file.comment : `(${i18n.ts.none})` }}<i class="ti ti-pencil" :class="$style.kvEditIcon"></i></template>
</MkKeyValue>
@@ -313,6 +313,10 @@ onMounted(async () => {
padding: .5rem 1rem;
}
+.multiline {
+ white-space: pre-wrap;
+}
+
.kvEditBtn {
text-align: start;
display: block;