From c19d70a6a0ea67bfed58a6f0c0f4b66e4d9e0233 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Sat, 21 Dec 2024 13:36:46 +0530 Subject: [PATCH] fix: bubble UI issues (#10608) This PR has fixes for the following issues - Inconsistent spacing between meta and text in text bubble - Activity bubble overflows for longer text (for now I have truncated it, I'll work with @absurdiya on a better solution) - Ugly lookinh gradient for expand button on email bubble - Email bubble overflow issues and text rendering issues - Alignment for error message - Minute-wise grouping not working - Link color should not be blue - Use `gray-3` for bubble background instead of `gray-4` --- .../components-next/message/Message.vue | 3 + .../components-next/message/MessageList.vue | 28 ++++-- .../components-next/message/MessageMeta.vue | 2 +- .../message/bubbles/Activity.vue | 6 +- .../components-next/message/bubbles/Base.vue | 6 +- .../message/bubbles/Email/EmailMeta.vue | 2 +- .../message/bubbles/Email/Index.vue | 99 ++++++++++--------- .../message/bubbles/Text/FormattedContent.vue | 2 +- .../message/bubbles/Text/Index.vue | 30 +++--- tailwind.config.js | 8 +- 10 files changed, 102 insertions(+), 84 deletions(-) diff --git a/app/javascript/dashboard/components-next/message/Message.vue b/app/javascript/dashboard/components-next/message/Message.vue index 90721e322..1952e9327 100644 --- a/app/javascript/dashboard/components-next/message/Message.vue +++ b/app/javascript/dashboard/components-next/message/Message.vue @@ -218,9 +218,11 @@ const gridTemplate = computed(() => { const map = { [ORIENTATION.LEFT]: ` "avatar bubble" + "spacer meta" `, [ORIENTATION.RIGHT]: ` "bubble" + "meta" `, }; @@ -399,6 +401,7 @@ provideMessageContext({ class="[grid-area:bubble] flex" :class="{ 'pl-9 justify-end': orientation === ORIENTATION.RIGHT, + 'min-w-0': variant === MESSAGE_VARIANTS.EMAIL, }" @contextmenu="openContextMenu($event)" > diff --git a/app/javascript/dashboard/components-next/message/MessageList.vue b/app/javascript/dashboard/components-next/message/MessageList.vue index 436cbd8ce..97fb16043 100644 --- a/app/javascript/dashboard/components-next/message/MessageList.vue +++ b/app/javascript/dashboard/components-next/message/MessageList.vue @@ -1,6 +1,7 @@