diff --git a/src/components/BotMessageWithBodyInput.tsx b/src/components/BotMessageWithBodyInput.tsx index ea58c57c6..ae41ff029 100644 --- a/src/components/BotMessageWithBodyInput.tsx +++ b/src/components/BotMessageWithBodyInput.tsx @@ -12,7 +12,6 @@ const Root = styled.span` display: flex; flex-direction: row; align-items: flex-end; - margin-bottom: 6px; gap: 8px; position: relative; `; diff --git a/src/components/CurrentUserMessage.tsx b/src/components/CurrentUserMessage.tsx index 67493d1de..ffd159e58 100644 --- a/src/components/CurrentUserMessage.tsx +++ b/src/components/CurrentUserMessage.tsx @@ -9,9 +9,7 @@ const Root = styled.div<{ enableEmojiFeedback: boolean }>` display: flex; justify-content: flex-end; align-items: end; - margin-bottom: 6px; gap: 4px; - margin-top: ${({ enableEmojiFeedback }) => (enableEmojiFeedback ? '16px' : '0')}; `; type Props = { diff --git a/src/components/CustomTypingIndicatorBubble.tsx b/src/components/CustomTypingIndicatorBubble.tsx index 0fbdc64a8..e1b6baaf1 100644 --- a/src/components/CustomTypingIndicatorBubble.tsx +++ b/src/components/CustomTypingIndicatorBubble.tsx @@ -3,7 +3,7 @@ import { TypingBubble } from '../foundation/components/TypingBubble'; function CustomTypingIndicatorBubble({ botProfileUrl }: { botProfileUrl: string }) { return ( -
+
diff --git a/src/components/SuggestedRepliesContainer.tsx b/src/components/SuggestedRepliesContainer.tsx index 29c950f42..c9b957c44 100644 --- a/src/components/SuggestedRepliesContainer.tsx +++ b/src/components/SuggestedRepliesContainer.tsx @@ -11,11 +11,13 @@ interface Props { const SuggestedRepliesContainer = ({ replies = [], type = 'vertical', sendUserMessage }: Props) => { if (replies.length <= 0) return null; return ( - sendUserMessage?.({ message })} - type={type} - /> +
+ sendUserMessage?.({ message })} + type={type} + /> +
); }; diff --git a/src/components/UserMessageWithBodyInput.tsx b/src/components/UserMessageWithBodyInput.tsx index a741d87f6..b05970085 100644 --- a/src/components/UserMessageWithBodyInput.tsx +++ b/src/components/UserMessageWithBodyInput.tsx @@ -13,7 +13,6 @@ import { formatCreatedAtToAMPM } from '../utils/messageTimestamp'; const Root = styled.div` display: flex; align-items: flex-end; - margin-bottom: 6px; flex-wrap: wrap; gap: 8px; position: relative; diff --git a/src/components/chat/ui/ChatMessageList.tsx b/src/components/chat/ui/ChatMessageList.tsx index 85031a0e3..36dbc6bb6 100644 --- a/src/components/chat/ui/ChatMessageList.tsx +++ b/src/components/chat/ui/ChatMessageList.tsx @@ -62,29 +62,31 @@ export const ChatMessageList = () => { formatString={stringSet.DATE_FORMAT__MESSAGE_LIST__DATE_SEPARATOR} /> )} - +
+ - {message.data && - isDashboardPreview(customUserAgentParam) && - message.messageId === channel?.lastMessage?.messageId && ( - + {message.data && + isDashboardPreview(customUserAgentParam) && + message.messageId === channel?.lastMessage?.messageId && ( + + )} + + {showRepliesOnLastMessage && suggestedReplies.length > 0 && ( + { + dataSource.sendUserMessage(params, handlers.onAfterSendMessage).then(handlers.onAfterSendMessage); + }} + /> )} - - {showRepliesOnLastMessage && suggestedReplies.length > 0 && ( - { - dataSource.sendUserMessage(params, handlers.onAfterSendMessage).then(handlers.onAfterSendMessage); - }} - /> - )} +
); }}