Skip to content

Commit 89d59b8

Browse files
committed
feat(comments): add Markdown support
Signed-off-by: Julien Veyssier <[email protected]>
1 parent bb1451f commit 89d59b8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

apps/comments/src/components/Comment.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
:class="{ 'comment__message--expanded': expanded }"
104104
:text="richContent.message"
105105
:arguments="richContent.mentions"
106+
use-markdown
106107
@click.native="onExpand" />
107108
</div>
108109
</component>
@@ -376,13 +377,19 @@ $comment-padding: 10px;
376377
&__message {
377378
white-space: pre-wrap;
378379
word-break: normal;
379-
max-height: 70px;
380-
overflow: hidden;
380+
max-height: 200px;
381+
overflow: auto;
382+
scrollbar-gutter: stable;
383+
scrollbar-width: thin;
381384
margin-top: -6px;
382385
&--expanded {
383386
max-height: none;
384387
overflow: visible;
385388
}
389+
:deep(img) {
390+
max-width: 100%;
391+
height: auto;
392+
}
386393
}
387394
}
388395

0 commit comments

Comments
 (0)