From ee3124cf8431620f41335157784ea571bfd7786d Mon Sep 17 00:00:00 2001 From: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> Date: Tue, 31 Jan 2023 16:25:24 +0530 Subject: [PATCH] fix: Uses woot-button in mention box (#6317) * fix: Uses woot-button in mention box * Style changes to fix mention box position * Fixes review comments * Fixes review comments --------- Co-authored-by: Muhsin Keloth Co-authored-by: Vishnu Narayanan Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> --- .../components/widgets/WootWriter/Editor.vue | 2 + .../widgets/conversation/ReplyBox.vue | 7 ++ .../widgets/conversation/TagAgents.vue | 8 +- .../widgets/mentions/MentionBox.vue | 90 ++++++++++++------- .../conversation/contact/ConversationForm.vue | 12 +-- 5 files changed, 73 insertions(+), 46 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/WootWriter/Editor.vue b/app/javascript/dashboard/components/widgets/WootWriter/Editor.vue index 5ee6a1e8b..abe84c6c9 100644 --- a/app/javascript/dashboard/components/widgets/WootWriter/Editor.vue +++ b/app/javascript/dashboard/components/widgets/WootWriter/Editor.vue @@ -210,6 +210,8 @@ export default { } }, editorId() { + this.showCannedMenu = false; + this.cannedSearchTerm = ''; this.reloadState(); }, isPrivate() { diff --git a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue index 3bbaf2c9b..b28d757ec 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue @@ -20,6 +20,7 @@ @@ -1045,6 +1046,7 @@ export default { } .reply-box__top { + position: relative; padding: 0 var(--space-normal); border-top: 1px solid var(--color-border); margin-top: -1px; @@ -1082,4 +1084,9 @@ export default { margin-bottom: 0; } } + +.normal-editor__canned-box { + width: calc(100% - 2 * var(--space-normal)); + left: var(--space-normal); +} diff --git a/app/javascript/dashboard/components/widgets/conversation/TagAgents.vue b/app/javascript/dashboard/components/widgets/conversation/TagAgents.vue index 85189757b..c48af3f16 100644 --- a/app/javascript/dashboard/components/widgets/conversation/TagAgents.vue +++ b/app/javascript/dashboard/components/widgets/conversation/TagAgents.vue @@ -2,7 +2,6 @@