Fix white-space display

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
pull/23609/head
John Molakvoæ (skjnldsv) 2020-10-21 14:31:22 +07:00
parent a20f598049
commit cf43b70db6
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
1 changed files with 8 additions and 2 deletions

@ -66,7 +66,7 @@
</div>
<!-- Message editor -->
<div class="comment__message" v-if="editor || editing">
<div class="comment__editor " v-if="editor || editing">
<RichContenteditable v-model="localMessage"
:auto-complete="autoComplete"
:contenteditable="!loading"
@ -263,6 +263,7 @@ $comment-padding: 10px;
color: var(--color-text-maxcontrast);
}
&__editor,
&__message {
position: relative;
// Avatar size, align with author name
@ -292,12 +293,17 @@ $comment-padding: 10px;
opacity: 1;
}
}
&__message {
white-space: pre-wrap;
word-break: break-word;
}
}
.rich-contenteditable__input {
min-height: 44px;
margin: 0;
padding: $comment-padding;
min-height: 44px;
}
</style>