fix: adjust other user message alignment (#7414)

This commit is contained in:
Richard Shiue 2025-02-25 10:35:53 +08:00 committed by GitHub
parent 63239893ab
commit 7eaafc52ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 10 deletions

View File

@ -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,

View File

@ -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(),