From 9e3b0f0731220c9bb2c58ed205ff2d180f849bf7 Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Mon, 19 Oct 2020 14:57:16 +0530 Subject: [PATCH] fix: name and email address overflow issue in customer side panel (#1348) * Complete name and email address overflow issue * Changes as per review * Code cleanup --- .../dashboard/i18n/locale/en/contact.json | 1 + .../conversation/contact/ContactInfo.vue | 5 ++- .../conversation/contact/ContactInfoRow.vue | 33 ++++++++++++++++++- 3 files changed, 37 insertions(+), 2 deletions(-) diff --git a/app/javascript/dashboard/i18n/locale/en/contact.json b/app/javascript/dashboard/i18n/locale/en/contact.json index 95b1606fa..790d56029 100644 --- a/app/javascript/dashboard/i18n/locale/en/contact.json +++ b/app/javascript/dashboard/i18n/locale/en/contact.json @@ -3,6 +3,7 @@ "NOT_AVAILABLE": "Not Available", "EMAIL_ADDRESS": "Email Address", "PHONE_NUMBER": "Phone number", + "COPY_SUCCESSFUL": "Copied to clipboard successfully", "COMPANY": "Company", "LOCATION": "Location", "CONVERSATION_TITLE": "Conversation Details", diff --git a/app/javascript/dashboard/routes/dashboard/conversation/contact/ContactInfo.vue b/app/javascript/dashboard/routes/dashboard/conversation/contact/ContactInfo.vue index b99000e67..6fa3a397b 100644 --- a/app/javascript/dashboard/routes/dashboard/conversation/contact/ContactInfo.vue +++ b/app/javascript/dashboard/routes/dashboard/conversation/contact/ContactInfo.vue @@ -23,7 +23,9 @@ :value="contact.email" icon="ion-email" :title="$t('CONTACT_PANEL.EMAIL_ADDRESS')" + show-copy /> + - {{ value }} + {{ value }} {{ $t('CONTACT_PANEL.NOT_AVAILABLE') }} + + +
{{ value }} @@ -17,7 +27,10 @@
@@ -50,6 +74,13 @@ export default { margin-bottom: $space-smaller; color: $color-body; + .copy-icon { + margin-left: $space-one; + &:hover { + color: $color-woot; + } + } + &.a { &:hover { text-decoration: underline;