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 suggestion action button position (#7632)
Richard Shiue9147f64b652f
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/ai_writer_block_component.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/ai_writer_block_component.dartindex a4bc4f50e3..0f1e077d6d 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/ai_writer_block_component.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/ai_writer_block_component.dart@@ -222,9 +222,11 @@ class _OverlayContentState extends State<OverlayContent> {final isInitialReadyState =state is ReadyAiWriterState && state.isFirstRun;final showSuggestedActionsPopup =- showSuggestedActions && markdownText.isEmpty;- final showSuggestedActionsWithin =- showSuggestedActions && markdownText.isNotEmpty;+ showSuggestedActions && markdownText.isEmpty ||+ (markdownText.isNotEmpty && command != AiWriterCommand.explain);+ final showSuggestedActionsWithin = showSuggestedActions &&+ markdownText.isNotEmpty &&+ command == AiWriterCommand.explain;final borderColor = Theme.of(context).isLightMode? Color(0x1F1F2329)