From acda125ad6883123e487a83627da2bbafe6351e1 Mon Sep 17 00:00:00 2001 From: Abhinav Raut Date: Wed, 13 May 2026 01:22:45 +0530 Subject: [PATCH] Refactor inline images PR for project conventions --- .../main/src/components/ImageLightbox.vue | 8 +- .../main/src/components/editor/TextEditor.vue | 161 +----------------- .../editor/extensions/ResizableImage.js | 160 +++++++++++++++++ .../conversation/message/MessageBubble.vue | 10 +- .../message/attachment/AttachmentItem.vue | 156 +++++++++++++++++ .../attachment/FileAttachmentPreview.vue | 142 --------------- .../attachment/ImageAttachmentPreview.vue | 46 ----- .../attachment/MessageAttachmentPreview.vue | 18 +- frontend/shared-ui/assets/styles/main.scss | 8 - i18n/en.json | 4 +- internal/conversation/message.go | 6 - 11 files changed, 337 insertions(+), 382 deletions(-) create mode 100644 frontend/apps/main/src/components/editor/extensions/ResizableImage.js create mode 100644 frontend/apps/main/src/features/conversation/message/attachment/AttachmentItem.vue delete mode 100644 frontend/apps/main/src/features/conversation/message/attachment/FileAttachmentPreview.vue delete mode 100644 frontend/apps/main/src/features/conversation/message/attachment/ImageAttachmentPreview.vue diff --git a/frontend/apps/main/src/components/ImageLightbox.vue b/frontend/apps/main/src/components/ImageLightbox.vue index 8a47cade..e4111efc 100644 --- a/frontend/apps/main/src/components/ImageLightbox.vue +++ b/frontend/apps/main/src/components/ImageLightbox.vue @@ -42,16 +42,16 @@ :href="currentImage.url" download class="text-white/70 hover:text-white" - :title="t('imageLightbox.download')" - :aria-label="t('imageLightbox.download')" + :title="t('globals.terms.download')" + :aria-label="t('globals.terms.download')" @click.stop >