diff --git a/src/apps/chat/components/message/ChatMessage.tsx b/src/apps/chat/components/message/ChatMessage.tsx index 3879af7e9..69ad3372a 100644 --- a/src/apps/chat/components/message/ChatMessage.tsx +++ b/src/apps/chat/components/message/ChatMessage.tsx @@ -551,6 +551,15 @@ export function ChatMessage(props: { )} + {/* Reply-To Bubble */} + {!!messageMetadata?.inReplyToText && ( + + )} + {/* Image Attachment Fragments (just for a prettier display on top of the message) */} {imageAttachments.length >= 1 && !isEditingText && ( )} - {/* Reply-To Bubble */} - {!!messageMetadata?.inReplyToText && ( - - )} - {/* Editing: Cancel */} diff --git a/src/apps/chat/components/message/ReplyToBubble.tsx b/src/apps/chat/components/message/ReplyToBubble.tsx index c63637464..965e1f910 100644 --- a/src/apps/chat/components/message/ReplyToBubble.tsx +++ b/src/apps/chat/components/message/ReplyToBubble.tsx @@ -34,9 +34,10 @@ export const inlineMessageBubbleSx: SxProps = { // redefine // border: 'none', // mt: 1, - borderColor: `${INLINE_COLOR}.outlinedColor`, + borderColor: `${INLINE_COLOR}.outlinedColor`, // outlinedBorder:lighter, outlinedColor:darker borderRadius: 'sm', boxShadow: 'xs', + // boxShadow: 'inset 2px 0px 5px -4px var(--joy-palette-primary-outlinedColor)', width: undefined, padding: '0.375rem 0.25rem 0.375rem 0.5rem', @@ -45,7 +46,8 @@ export const inlineMessageBubbleSx: SxProps = { // mr: { xs: 7.75, md: 10.5 }, // personaSx.minWidth + gap (md: 1) + 1.5 (text margin) // now: the parent is a 'grid' to v-layout fragment types - mx: '0.75rem', // 1.5, like margin of text blocks + // mx: '0.75rem', // 1.5, like margin of text blocks + ml: 'auto', // right-align the bubble in the parent }; @@ -58,6 +60,7 @@ export function ReplyToBubble(props: { }) { return ( + + {props.replyToText} + {!!props.onClear && ( )} + ); } \ No newline at end of file