mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
feat(comments): add Markdown support
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
This commit is contained in:
parent
bb1451fcb9
commit
89d59b8175
1 changed files with 9 additions and 2 deletions
|
|
@ -103,6 +103,7 @@
|
|||
:class="{ 'comment__message--expanded': expanded }"
|
||||
:text="richContent.message"
|
||||
:arguments="richContent.mentions"
|
||||
use-markdown
|
||||
@click.native="onExpand" />
|
||||
</div>
|
||||
</component>
|
||||
|
|
@ -376,13 +377,19 @@ $comment-padding: 10px;
|
|||
&__message {
|
||||
white-space: pre-wrap;
|
||||
word-break: normal;
|
||||
max-height: 70px;
|
||||
overflow: hidden;
|
||||
max-height: 200px;
|
||||
overflow: auto;
|
||||
scrollbar-gutter: stable;
|
||||
scrollbar-width: thin;
|
||||
margin-top: -6px;
|
||||
&--expanded {
|
||||
max-height: none;
|
||||
overflow: visible;
|
||||
}
|
||||
:deep(img) {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue