Skip to content

Commit 7e9d54f

Browse files
fix(frontend): ファイルの詳細ページのファイルの説明で改行が正しく表示されない問題を修正 (#14588)
* upd: don't ignore new lines on file info * Update Changelog * ✌️ --------- Co-authored-by: Marie <[email protected]>
1 parent f0834ca commit 7e9d54f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
- Fix: 縦横比が極端なカスタム絵文字を表示する際にレイアウトが崩れる箇所があるのを修正
1717
(Cherry-picked from https://github.com/MisskeyIO/misskey/pull/725)
1818
- Fix: 設定変更時のリロード確認ダイアログが複数個表示されることがある問題を修正
19+
- Fix: ファイルの詳細ページのファイルの説明で改行が正しく表示されない問題を修正
20+
(Cherry-picked from https://activitypub.software/TransFem-org/Sharkey/-/commit/bde6bb0bd2e8b0d027e724d2acdb8ae0585a8110)
1921

2022
### Server
2123
- Feat: Misskey® Reactions Buffering Technology™ (RBT)により、リアクションの作成負荷を低減することが可能に

packages/frontend/src/pages/drive.file.info.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ SPDX-License-Identifier: AGPL-3.0-only
4545
</MkKeyValue>
4646
</button>
4747
<button class="_button" :class="$style.kvEditBtn" @click="describe()">
48-
<MkKeyValue>
48+
<MkKeyValue :class="$style.multiline">
4949
<template #key>{{ i18n.ts.description }}</template>
5050
<template #value>{{ file.comment ? file.comment : `(${i18n.ts.none})` }}<i class="ti ti-pencil" :class="$style.kvEditIcon"></i></template>
5151
</MkKeyValue>
@@ -313,6 +313,10 @@ onMounted(async () => {
313313
padding: .5rem 1rem;
314314
}
315315

316+
.multiline {
317+
white-space: pre-wrap;
318+
}
319+
316320
.kvEditBtn {
317321
text-align: start;
318322
display: block;

0 commit comments

Comments
 (0)