fix(frontend): 長い文章を投稿する際、プレビューが画面からはみ出る問題を修正

Fix #11186

Cherry-picks: 6a015341ef
This commit is contained in:
syuilo 2023-07-08 18:55:02 +09:00 committed by anatawa12
parent a45e320d9c
commit a7d3c3a41d
No known key found for this signature in database
GPG Key ID: 9CA909848B8E4EA6
3 changed files with 11 additions and 1 deletions

View File

@ -19,6 +19,7 @@
### Client
- 画像を動画と同様に簡単に隠せるように
- フォローやお気に入り登録をしていないチャンネルを開く時は概要ページを開くように
- Fix: 長い文章を投稿する際、プレビューが画面からはみ出る問題を修正
### Server

View File

@ -1015,6 +1015,8 @@ defineExpose({
.preview {
padding: 16px 20px 0 20px;
max-height: 150px;
overflow: auto;
}
.targetNote {

View File

@ -1,6 +1,6 @@
<template>
<MkModal ref="modal" :preferType="'dialog'" @click="modal.close()" @closed="onModalClosed()">
<MkPostForm ref="form" style="margin: 0 auto auto auto;" v-bind="props" autofocus freezeAfterPosted @posted="onPosted" @cancel="modal.close()" @esc="modal.close()"/>
<MkPostForm ref="form" :class="$style.form" v-bind="props" autofocus freezeAfterPosted @posted="onPosted" @cancel="modal.close()" @esc="modal.close()"/>
</MkModal>
</template>
@ -44,3 +44,10 @@ function onModalClosed() {
emit('closed');
}
</script>
<style lang="scss" module>
.form {
max-height: 100%;
margin: 0 auto auto auto;
}
</style>