From 3b89ecebf07f5c954d687adc0ed9bb4b8a4a3f8e Mon Sep 17 00:00:00 2001 From: Ajay Bura <32841439+ajbura@users.noreply.github.com> Date: Sun, 14 Sep 2025 22:00:15 +0530 Subject: [PATCH] hide bubble for event content --- .../message/content/EventContent.tsx | 6 +++++- src/app/components/message/layout/Bubble.tsx | 19 ++++++++++++------- .../components/message/layout/layout.css.ts | 2 +- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/src/app/components/message/content/EventContent.tsx b/src/app/components/message/content/EventContent.tsx index b1963103..130ba8c9 100644 --- a/src/app/components/message/content/EventContent.tsx +++ b/src/app/components/message/content/EventContent.tsx @@ -34,7 +34,11 @@ export function EventContent({ messageLayout, time, iconSrc, content }: EventCon return {msgContentJSX}; } if (messageLayout === MessageLayout.Bubble) { - return {msgContentJSX}; + return ( + + {msgContentJSX} + + ); } return {msgContentJSX}; } diff --git a/src/app/components/message/layout/Bubble.tsx b/src/app/components/message/layout/Bubble.tsx index 8e3b8c5c..267bda04 100644 --- a/src/app/components/message/layout/Bubble.tsx +++ b/src/app/components/message/layout/Bubble.tsx @@ -5,22 +5,27 @@ import * as css from './layout.css'; type BubbleLayoutProps = { self?: boolean; + hideBubble?: boolean; before?: ReactNode; }; export const BubbleLayout = as<'div', BubbleLayoutProps>( - ({ self, before, children, ...props }, ref) => ( + ({ self, hideBubble, before, children, ...props }, ref) => ( {before} {children} diff --git a/src/app/components/message/layout/layout.css.ts b/src/app/components/message/layout/layout.css.ts index e9591863..db7b8795 100644 --- a/src/app/components/message/layout/layout.css.ts +++ b/src/app/components/message/layout/layout.css.ts @@ -136,7 +136,7 @@ export const ModernBefore = style({ export const BubbleBefore = style([ ModernBefore, { - minWidth: toRem(22), + minWidth: toRem(24), }, ]);