Skip to content

Commit

Permalink
Merge pull request #6416 from nextcloud/feat/markdown-comments
Browse files Browse the repository at this point in the history
feat: Add markdown support for comments
  • Loading branch information
juliusknorr authored Oct 17, 2024
2 parents 26f82d9 + 4d93959 commit 101499d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/components/card/CommentForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ export default {

.comment-form__contenteditable {
word-break: break-word;
border-radius: var(--border-radius-large)
border-radius: var(--border-radius-large);
padding: var(--default-grid-baseline);
max-height: 200px;
overflow: auto;
}

.atwho-wrap {
Expand Down
2 changes: 2 additions & 0 deletions src/components/card/CommentItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
</div>
<NcRichText class="comment--content"
dir="auto"
use-markdown
:text="richText(comment)"
:arguments="richArgs(comment)"
:autolink="true" />
Expand Down Expand Up @@ -63,6 +64,7 @@
<div v-show="!edit" ref="richTextElement">
<NcRichText class="comment--content"
dir="auto"
use-markdown
:text="richText(comment)"
:arguments="richArgs(comment)"
:autolink="true" />
Expand Down
9 changes: 6 additions & 3 deletions src/css/comments.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@
padding: 13px;
background-color: transparent;
border: none;
opacity: .3;
position: absolute;
bottom: 0;
right: 0;
bottom: var(--default-grid-baseline);
right: var(--default-grid-baseline);

&:disabled {
opacity: .7;
}
}
}

Expand Down

0 comments on commit 101499d

Please sign in to comment.