Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: adjust other user message alignment (#7414)
Richard Shiue7eaafc52ce28
diff --git a/frontend/appflowy_flutter/lib/plugins/ai_chat/chat_page.dart b/frontend/appflowy_flutter/lib/plugins/ai_chat/chat_page.dartindex ee39fb8adc..551a210d00 100644--- a/frontend/appflowy_flutter/lib/plugins/ai_chat/chat_page.dart+++ b/frontend/appflowy_flutter/lib/plugins/ai_chat/chat_page.dart@@ -191,14 +191,8 @@ class _ChatContentPage extends StatelessWidget {);}- if (message.author.id == userProfile.id.toString()) {- return ChatUserMessageWidget(- user: message.author,- message: message,- );- }-- if (isOtherUserMessage(message)) {+ if (message.author.id == userProfile.id.toString() ||+ isOtherUserMessage(message)) {return ChatUserMessageWidget(user: message.author,message: message,diff --git a/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/user_message_bubble.dart b/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/user_message_bubble.dartindex 81aab4d555..8f897fc8a1 100644--- a/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/user_message_bubble.dart+++ b/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/user_message_bubble.dart@@ -42,10 +42,9 @@ class ChatUserMessageBubble extends StatelessWidget {const VSpace(6),],Row(- mainAxisSize: MainAxisSize.min,crossAxisAlignment: CrossAxisAlignment.start,+ mainAxisAlignment: MainAxisAlignment.end,children: [- const Spacer(),_buildBubble(context),const HSpace(DesktopAIChatSizes.avatarAndChatBubbleSpacing),_buildAvatar(),