mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-12-04 19:16:13 +00:00
chore: set releated question height
This commit is contained in:
parent
117950c922
commit
21bf2968a9
@ -3,7 +3,6 @@ import 'package:appflowy/generated/locale_keys.g.dart';
|
|||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
import 'package:flowy_infra_ui/style_widget/button.dart';
|
import 'package:flowy_infra_ui/style_widget/button.dart';
|
||||||
import 'package:flowy_infra_ui/style_widget/text.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:flowy_infra_ui/widget/spacing.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:universal_platform/universal_platform.dart';
|
import 'package:universal_platform/universal_platform.dart';
|
||||||
@ -67,14 +66,13 @@ class RelatedQuestionItem extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return FlowyTooltip(
|
return FlowyButton(
|
||||||
message: question,
|
|
||||||
child: FlowyButton(
|
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
text: Flexible(
|
text: Flexible(
|
||||||
child: FlowyText(
|
child: FlowyText(
|
||||||
question,
|
question,
|
||||||
lineHeight: 1.4,
|
lineHeight: 1.4,
|
||||||
|
maxLines: 2,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -88,7 +86,6 @@ class RelatedQuestionItem extends StatelessWidget {
|
|||||||
size: const Size.square(16.0),
|
size: const Size.square(16.0),
|
||||||
),
|
),
|
||||||
onTap: () => onQuestionSelected(question),
|
onTap: () => onQuestionSelected(question),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -272,12 +272,12 @@ class DocumentBloc extends Bloc<DocumentEvent, DocumentState> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (options.inMemoryUpdate) {
|
if (options.inMemoryUpdate) {
|
||||||
Log.info('skip transaction for in-memory update');
|
Log.trace('skip transaction for in-memory update');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (enableDocumentInternalLog) {
|
if (enableDocumentInternalLog) {
|
||||||
Log.debug(
|
Log.trace(
|
||||||
'[TransactionAdapter] 1. transaction before apply: ${transaction.hashCode}',
|
'[TransactionAdapter] 1. transaction before apply: ${transaction.hashCode}',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -289,7 +289,7 @@ class DocumentBloc extends Bloc<DocumentEvent, DocumentState> {
|
|||||||
await _documentRules.applyRules(value: value);
|
await _documentRules.applyRules(value: value);
|
||||||
|
|
||||||
if (enableDocumentInternalLog) {
|
if (enableDocumentInternalLog) {
|
||||||
Log.debug(
|
Log.trace(
|
||||||
'[TransactionAdapter] 4. transaction after apply: ${transaction.hashCode}',
|
'[TransactionAdapter] 4. transaction after apply: ${transaction.hashCode}',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user