feat: Add markdown support for comments

Signed-off-by: Julius Knorr <jus@bitgrid.net>
This commit is contained in:
Julius Knorr
2024-10-16 15:41:35 +02:00
parent 90e0cab306
commit 4d9395982e
3 changed files with 12 additions and 4 deletions

View File

@@ -167,7 +167,10 @@ export default {
.comment-form__contenteditable { .comment-form__contenteditable {
word-break: break-word; 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 { .atwho-wrap {

View File

@@ -18,6 +18,7 @@
</div> </div>
<NcRichText class="comment--content" <NcRichText class="comment--content"
dir="auto" dir="auto"
use-markdown
:text="richText(comment)" :text="richText(comment)"
:arguments="richArgs(comment)" :arguments="richArgs(comment)"
:autolink="true" /> :autolink="true" />
@@ -63,6 +64,7 @@
<div v-show="!edit" ref="richTextElement"> <div v-show="!edit" ref="richTextElement">
<NcRichText class="comment--content" <NcRichText class="comment--content"
dir="auto" dir="auto"
use-markdown
:text="richText(comment)" :text="richText(comment)"
:arguments="richArgs(comment)" :arguments="richArgs(comment)"
:autolink="true" /> :autolink="true" />

View File

@@ -23,10 +23,13 @@
padding: 13px; padding: 13px;
background-color: transparent; background-color: transparent;
border: none; border: none;
opacity: .3;
position: absolute; position: absolute;
bottom: 0; bottom: var(--default-grid-baseline);
right: 0; right: var(--default-grid-baseline);
&:disabled {
opacity: .7;
}
} }
} }