From d2f5311400350b9686541af3a7c4aa20de0883e0 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Wed, 18 Jun 2025 23:51:23 +0200 Subject: [PATCH 1/8] fix: Disable custom context menu on img tags (#11762) # Pull Request Template ## Description Fixes #11761. See the issue for the details. ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality not to work as expected) - [ ] This change requires a documentation update ## How Has This Been Tested? I deployed a modified version of Chatwoot with this patch and tested. ## Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have commented on my code, particularly in hard-to-understand areas - [x] I have made corresponding changes to the documentation (not applicable) - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works (not sure how to do this) - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published in downstream modules --------- Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> --- app/javascript/dashboard/components-next/message/Message.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components-next/message/Message.vue b/app/javascript/dashboard/components-next/message/Message.vue index 98323f79a..28776a8d9 100644 --- a/app/javascript/dashboard/components-next/message/Message.vue +++ b/app/javascript/dashboard/components-next/message/Message.vue @@ -379,7 +379,7 @@ const shouldRenderMessage = computed(() => { function openContextMenu(e) { const shouldSkipContextMenu = e.target?.classList.contains('skip-context-menu') || - e.target?.tagName.toLowerCase() === 'a'; + ['a', 'img'].includes(e.target?.tagName.toLowerCase()); if (shouldSkipContextMenu || getSelection().toString()) { return; } From 2cfca6008b3d83b1ef560b702af47866c1e8a389 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Thu, 19 Jun 2025 14:05:18 +0530 Subject: [PATCH 2/8] fix: Incorrect conversation count shown for filters/folders after idle period (#11770) --- app/javascript/dashboard/components/ChatList.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/dashboard/components/ChatList.vue b/app/javascript/dashboard/components/ChatList.vue index 928eea7df..439e7c682 100644 --- a/app/javascript/dashboard/components/ChatList.vue +++ b/app/javascript/dashboard/components/ChatList.vue @@ -756,6 +756,7 @@ function toggleSelectAll(check) { } useEmitter('fetch_conversation_stats', () => { + if (hasAppliedFiltersOrActiveFolders.value) return; store.dispatch('conversationStats/get', conversationFilters.value); }); From b683973e79c0abd8285f689537919a9cb7316660 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Thu, 19 Jun 2025 21:28:12 +0530 Subject: [PATCH 3/8] fix: Resolve styling issues in multiselect (#11728) --- .../dashboard/assets/scss/plugins/_multiselect.scss | 6 +++--- .../dashboard/modules/contact/components/MergeContact.vue | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/javascript/dashboard/assets/scss/plugins/_multiselect.scss b/app/javascript/dashboard/assets/scss/plugins/_multiselect.scss index ffcfca545..1280eb069 100644 --- a/app/javascript/dashboard/assets/scss/plugins/_multiselect.scss +++ b/app/javascript/dashboard/assets/scss/plugins/_multiselect.scss @@ -47,7 +47,7 @@ @apply max-w-full; .multiselect__option { - @apply text-sm font-normal; + @apply text-sm font-normal flex justify-between items-center; span { @apply inline-block overflow-hidden text-ellipsis whitespace-nowrap w-fit; @@ -58,7 +58,7 @@ } &::after { - @apply bottom-0 flex items-center justify-center text-center; + @apply bottom-0 flex items-center justify-center text-center relative px-1 leading-tight; } &.multiselect__option--highlight { @@ -74,7 +74,7 @@ } &.multiselect__option--highlight::after { - @apply bg-transparent; + @apply bg-transparent text-n-slate-12; } &.multiselect__option--selected { diff --git a/app/javascript/dashboard/modules/contact/components/MergeContact.vue b/app/javascript/dashboard/modules/contact/components/MergeContact.vue index ae0d47f7f..4055a22e4 100644 --- a/app/javascript/dashboard/modules/contact/components/MergeContact.vue +++ b/app/javascript/dashboard/modules/contact/components/MergeContact.vue @@ -130,15 +130,15 @@ export default {
-
+