From 2b1b1c0f2859eb4906f1d80fd5f0618fb22b34fc Mon Sep 17 00:00:00 2001 From: GitStart <1501599+gitstart@users.noreply.github.com> Date: Thu, 27 Apr 2023 22:17:40 +0100 Subject: [PATCH] fix: distorted/shrunken emojis in Callout option in theDocument page (#2361) --- .../plugins/emoji_picker/src/default_emoji_picker_view.dart | 2 +- .../widgets/emoji_picker/src/default_emoji_picker_view.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/plugins/emoji_picker/src/default_emoji_picker_view.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/plugins/emoji_picker/src/default_emoji_picker_view.dart index 9ec8b08ce8..05cad2fc94 100644 --- a/frontend/appflowy_flutter/lib/plugins/document/presentation/plugins/emoji_picker/src/default_emoji_picker_view.dart +++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/plugins/emoji_picker/src/default_emoji_picker_view.dart @@ -270,7 +270,7 @@ class DefaultEmojiPickerViewState extends State widget.state.onEmojiSelected(categoryEmoji.category, emoji); }, child: FittedBox( - fit: BoxFit.fill, + fit: BoxFit.scaleDown, child: Text( emoji.emoji, textScaleFactor: 1.0, diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/emoji_picker/src/default_emoji_picker_view.dart b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/emoji_picker/src/default_emoji_picker_view.dart index 5148e600ec..74c8905eb6 100644 --- a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/emoji_picker/src/default_emoji_picker_view.dart +++ b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/emoji_picker/src/default_emoji_picker_view.dart @@ -295,7 +295,7 @@ class DefaultEmojiPickerViewState extends State widget.state.onEmojiSelected(categoryEmoji.category, emoji); }, child: FittedBox( - fit: BoxFit.fill, + fit: BoxFit.scaleDown, child: Text( emoji.emoji, textScaleFactor: 1.0,