fix(frontend): ファイルの詳細ページのファイルの説明で改行が正しく表示されない問題を修正 (#14588)
* upd: don't ignore new lines on file info * Update Changelog * ✌️ --------- Co-authored-by: Marie <github@yuugi.dev>
This commit is contained in:
		| @@ -16,6 +16,8 @@ | |||||||
| - Fix: 縦横比が極端なカスタム絵文字を表示する際にレイアウトが崩れる箇所があるのを修正   | - Fix: 縦横比が極端なカスタム絵文字を表示する際にレイアウトが崩れる箇所があるのを修正   | ||||||
|   (Cherry-picked from https://github.com/MisskeyIO/misskey/pull/725) |   (Cherry-picked from https://github.com/MisskeyIO/misskey/pull/725) | ||||||
| - Fix: 設定変更時のリロード確認ダイアログが複数個表示されることがある問題を修正 | - Fix: 設定変更時のリロード確認ダイアログが複数個表示されることがある問題を修正 | ||||||
|  | - Fix: ファイルの詳細ページのファイルの説明で改行が正しく表示されない問題を修正   | ||||||
|  |   (Cherry-picked from https://activitypub.software/TransFem-org/Sharkey/-/commit/bde6bb0bd2e8b0d027e724d2acdb8ae0585a8110) | ||||||
|  |  | ||||||
| ### Server | ### Server | ||||||
| - Feat: Misskey® Reactions Buffering Technology™ (RBT)により、リアクションの作成負荷を低減することが可能に | - Feat: Misskey® Reactions Buffering Technology™ (RBT)により、リアクションの作成負荷を低減することが可能に | ||||||
|   | |||||||
| @@ -45,7 +45,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||||||
| 				</MkKeyValue> | 				</MkKeyValue> | ||||||
| 			</button> | 			</button> | ||||||
| 			<button class="_button" :class="$style.kvEditBtn" @click="describe()"> | 			<button class="_button" :class="$style.kvEditBtn" @click="describe()"> | ||||||
| 				<MkKeyValue> | 				<MkKeyValue :class="$style.multiline"> | ||||||
| 					<template #key>{{ i18n.ts.description }}</template> | 					<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> | 					<template #value>{{ file.comment ? file.comment : `(${i18n.ts.none})` }}<i class="ti ti-pencil" :class="$style.kvEditIcon"></i></template> | ||||||
| 				</MkKeyValue> | 				</MkKeyValue> | ||||||
| @@ -313,6 +313,10 @@ onMounted(async () => { | |||||||
| 	padding: .5rem 1rem; | 	padding: .5rem 1rem; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | .multiline { | ||||||
|  | 	white-space: pre-wrap; | ||||||
|  | } | ||||||
|  |  | ||||||
| .kvEditBtn { | .kvEditBtn { | ||||||
| 	text-align: start; | 	text-align: start; | ||||||
| 	display: block; | 	display: block; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 かっこかり
					かっこかり