Skip to content

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.

chore: adjust ai writer popover content area (#7618)

Richard Shiue1d437fb81ef3
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.dart
index a35d0cfbf8..3e1316a58f 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
@@ -423,28 +423,25 @@ class SecondaryContentArea extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
+ const VSpace(8.0),
+ Container(
+ height: 24.0,
+ padding: EdgeInsets.symmetric(horizontal: 14.0),
+ alignment: AlignmentDirectional.centerStart,
+ child: FlowyText(
+ command.i18n,
+ fontSize: 12,
+ fontWeight: FontWeight.w600,
+ color: Color(0xFF666D76),
+ ),
+ ),
+ const VSpace(4.0),
Flexible(
child: SingleChildScrollView(
physics: ClampingScrollPhysics(),
- padding: EdgeInsets.only(top: 8.0, left: 14.0, right: 14.0),
- child: Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- Container(
- height: 24.0,
- alignment: AlignmentDirectional.centerStart,
- child: FlowyText(
- command.i18n,
- fontSize: 12,
- fontWeight: FontWeight.w600,
- color: Color(0xFF666D76),
- ),
- ),
- const VSpace(4.0),
- AIMarkdownText(
- markdown: markdownText,
- ),
- ],
+ padding: EdgeInsets.symmetric(horizontal: 14.0),
+ child: AIMarkdownText(
+ markdown: markdownText,
),
),
),