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: set releated question height

Nathan21bf2968a9c2
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.dart
index 34427479fe..2c09e77050 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
@@ -3,7 +3,6 @@ import 'package:appflowy/generated/locale_keys.g.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flowy_infra_ui/style_widget/button.dart';
import 'package:flowy_infra_ui/style_widget/text.dart';
-import 'package:flowy_infra_ui/widget/flowy_tooltip.dart';
import 'package:flowy_infra_ui/widget/spacing.dart';
import 'package:flutter/material.dart';
import 'package:universal_platform/universal_platform.dart';
@@ -67,28 +66,26 @@ class RelatedQuestionItem extends StatelessWidget {
@override
Widget build(BuildContext context) {
- return FlowyTooltip(
- message: question,
- child: FlowyButton(
- mainAxisAlignment: MainAxisAlignment.start,
- text: Flexible(
- child: FlowyText(
- question,
- lineHeight: 1.4,
- overflow: TextOverflow.ellipsis,
- ),
+ return FlowyButton(
+ mainAxisAlignment: MainAxisAlignment.start,
+ text: Flexible(
+ child: FlowyText(
+ question,
+ lineHeight: 1.4,
+ maxLines: 2,
+ overflow: TextOverflow.ellipsis,
),
- expandText: false,
- margin: UniversalPlatform.isMobile
- ? const EdgeInsets.symmetric(horizontal: 8.0, vertical: 4.0)
- : const EdgeInsets.all(8.0),
- leftIcon: FlowySvg(
- FlowySvgs.ai_chat_outlined_s,
- color: Theme.of(context).colorScheme.primary,
- size: const Size.square(16.0),
- ),
- onTap: () => onQuestionSelected(question),
),
+ expandText: false,
+ margin: UniversalPlatform.isMobile
+ ? const EdgeInsets.symmetric(horizontal: 8.0, vertical: 4.0)
+ : const EdgeInsets.all(8.0),
+ leftIcon: FlowySvg(
+ FlowySvgs.ai_chat_outlined_s,
+ color: Theme.of(context).colorScheme.primary,
+ size: const Size.square(16.0),
+ ),
+ onTap: () => onQuestionSelected(question),
);
}
}
diff --git a/frontend/appflowy_flutter/lib/plugins/document/application/document_bloc.dart b/frontend/appflowy_flutter/lib/plugins/document/application/document_bloc.dart
index 268863664b..20703659d0 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/application/document_bloc.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/application/document_bloc.dart
@@ -272,12 +272,12 @@ class DocumentBloc extends Bloc<DocumentEvent, DocumentState> {
}
if (options.inMemoryUpdate) {
- Log.info('skip transaction for in-memory update');
+ Log.trace('skip transaction for in-memory update');
return;
}
if (enableDocumentInternalLog) {
- Log.debug(
+ Log.trace(
'[TransactionAdapter] 1. transaction before apply: ${transaction.hashCode}',
);
}
@@ -289,7 +289,7 @@ class DocumentBloc extends Bloc<DocumentEvent, DocumentState> {
await _documentRules.applyRules(value: value);
if (enableDocumentInternalLog) {
- Log.debug(
+ Log.trace(
'[TransactionAdapter] 4. transaction after apply: ${transaction.hashCode}',
);
}