Skip to content
Snippets Groups Projects
Unverified Commit cf43b70d authored by John Molakvoæ's avatar John Molakvoæ
Browse files

Fix white-space display

parent a20f5980
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
</div> </div>
<!-- Message editor --> <!-- Message editor -->
<div class="comment__message" v-if="editor || editing"> <div class="comment__editor " v-if="editor || editing">
<RichContenteditable v-model="localMessage" <RichContenteditable v-model="localMessage"
:auto-complete="autoComplete" :auto-complete="autoComplete"
:contenteditable="!loading" :contenteditable="!loading"
...@@ -263,6 +263,7 @@ $comment-padding: 10px; ...@@ -263,6 +263,7 @@ $comment-padding: 10px;
color: var(--color-text-maxcontrast); color: var(--color-text-maxcontrast);
} }
&__editor,
&__message { &__message {
position: relative; position: relative;
// Avatar size, align with author name // Avatar size, align with author name
...@@ -292,12 +293,17 @@ $comment-padding: 10px; ...@@ -292,12 +293,17 @@ $comment-padding: 10px;
opacity: 1; opacity: 1;
} }
} }
&__message {
white-space: pre-wrap;
word-break: break-word;
}
} }
.rich-contenteditable__input { .rich-contenteditable__input {
min-height: 44px;
margin: 0; margin: 0;
padding: $comment-padding; padding: $comment-padding;
min-height: 44px;
} }
</style> </style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment