From fab4542b57331df633bd697feb872cd2548d7be0 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 13 Jun 2024 18:13:45 +0200 Subject: [PATCH] fix(comments): Use proper icon components instead of icon classes to fix dark mode Signed-off-by: Ferdinand Thiessen --- apps/comments/src/components/Comment.vue | 29 ++++++++++++------- .../src/views/ActivityCommentEntry.vue | 3 +- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/apps/comments/src/components/Comment.vue b/apps/comments/src/components/Comment.vue index 97e3adea1a4..8fb5bacf4d7 100644 --- a/apps/comments/src/components/Comment.vue +++ b/apps/comments/src/components/Comment.vue @@ -40,22 +40,27 @@ show if we have a message id and current user is author --> - + + {{ t('comments', 'Cancel edit') }} @@ -87,8 +92,8 @@ :disabled="isEmptyMessage" @click="onSubmit"> @@ -122,7 +127,11 @@ import NcActionSeparator from '@nextcloud/vue/dist/Components/NcActionSeparator. import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js' import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' import RichEditorMixin from '@nextcloud/vue/dist/Mixins/richEditor.js' -import ArrowRight from 'vue-material-design-icons/ArrowRight.vue' + +import IconArrowRight from 'vue-material-design-icons/ArrowRight.vue' +import IconClose from 'vue-material-design-icons/Close.vue' +import IconDelete from 'vue-material-design-icons/Delete.vue' +import IconEdit from 'vue-material-design-icons/Pencil.vue' import Moment from './Moment.vue' import CommentMixin from '../mixins/CommentMixin.js' diff --git a/apps/comments/src/views/ActivityCommentEntry.vue b/apps/comments/src/views/ActivityCommentEntry.vue index 38fc2d5f1ef..55af0d5bc1e 100644 --- a/apps/comments/src/views/ActivityCommentEntry.vue +++ b/apps/comments/src/views/ActivityCommentEntry.vue @@ -34,6 +34,7 @@