Wrap lines properly in comment text
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -41,6 +41,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
<div ref="contentEditable"
|
<div ref="contentEditable"
|
||||||
|
class="comment-form__contenteditable"
|
||||||
contenteditable
|
contenteditable
|
||||||
@keydown.enter="handleKeydown"
|
@keydown.enter="handleKeydown"
|
||||||
@paste="onPaste"
|
@paste="onPaste"
|
||||||
@@ -175,6 +176,10 @@ export default {
|
|||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import '../../css/comments';
|
@import '../../css/comments';
|
||||||
|
|
||||||
|
.comment-form__contenteditable {
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
.atwho-wrap {
|
.atwho-wrap {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
& > div[contenteditable] {
|
& > div[contenteditable] {
|
||||||
|
|||||||
@@ -48,4 +48,5 @@
|
|||||||
|
|
||||||
.comment--content {
|
.comment--content {
|
||||||
margin-left: 44px;
|
margin-left: 44px;
|
||||||
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user