Skip to content

Commit 8cd86fb

Browse files
Merge pull request #54685 from nextcloud/feat/comments/markdown-support
feat(comments): add Markdown support
2 parents 3da9905 + 6d4da35 commit 8cd86fb

File tree

7 files changed

+18
-11
lines changed

7 files changed

+18
-11
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

dist/4743-4743.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/4743-4743.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/comments-comments-app.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/comments-comments-app.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/comments-comments-tab.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/comments-comments-tab.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)