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
chore: adjust padding in chat (#7965)
Richard Shiue47b77528cee7
diff --git a/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_related_question.dart b/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_related_question.dartindex 2c09e77050..28c75c8c3f 100644--- a/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_related_question.dart+++ b/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_related_question.dart@@ -26,8 +26,8 @@ class RelatedQuestionList extends StatelessWidget {shrinkWrap: true,physics: const NeverScrollableScrollPhysics(),itemCount: relatedQuestions.length + 1,- padding:- const EdgeInsets.only(bottom: 8.0) + AIChatUILayout.messageMargin,+ padding: const EdgeInsets.only(left: 4.0, bottom: 8.0) ++ AIChatUILayout.messageMargin,separatorBuilder: (context, index) => const VSpace(4.0),itemBuilder: (context, index) {if (index == 0) {diff --git a/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_message_bubble.dart b/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_message_bubble.dartindex e9aacb55b1..1759b9ea32 100644--- a/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_message_bubble.dart+++ b/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_message_bubble.dart@@ -203,6 +203,7 @@ class _ChatAIMessageHoverState extends State<ChatAIMessageHover> {showWhenUnlinked: false,link: layerLink,targetAnchor: Alignment.bottomLeft,+ offset: const Offset(4.0, 0.0),child: Align(alignment: Alignment.topLeft,child: MouseRegion(diff --git a/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_text_message.dart b/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_text_message.dartindex 561cb0176b..b5a579793c 100644--- a/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_text_message.dart+++ b/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_text_message.dart@@ -188,7 +188,7 @@ class _LoadingMessage extends StatelessWidget {message: message,showActions: false,child: Padding(- padding: const EdgeInsets.only(top: 8.0),+ padding: EdgeInsetsDirectional.only(start: 4.0, top: 8.0),child: AILoadingIndicator(text: loadingText),),);@@ -248,9 +248,12 @@ class _NonEmptyMessage extends StatelessWidget {child: Column(crossAxisAlignment: CrossAxisAlignment.start,children: [- AIMarkdownText(- markdown: state.text,- withAnimation: enableAnimation && stream != null,+ Padding(+ padding: EdgeInsetsDirectional.only(start: 4.0),+ child: AIMarkdownText(+ markdown: state.text,+ withAnimation: enableAnimation && stream != null,+ ),),if (state.sources.isNotEmpty)SelectionContainer.disabled(