From 9a8b0302f37ae5eb025e277bb17474f33c5ffb8f Mon Sep 17 00:00:00 2001 From: sorairo Date: Mon, 11 Sep 2023 06:48:47 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=A1=E3=82=87=E3=81=A3=E3=81=A8=E3=81=A0?= =?UTF-8?q?=E3=81=91=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/view/common/misskey_notes/custom_emoji.dart | 13 +++---------- lib/view/common/misskey_notes/reaction_button.dart | 2 ++ 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/lib/view/common/misskey_notes/custom_emoji.dart b/lib/view/common/misskey_notes/custom_emoji.dart index b077b0b62..7a89692f2 100644 --- a/lib/view/common/misskey_notes/custom_emoji.dart +++ b/lib/view/common/misskey_notes/custom_emoji.dart @@ -106,16 +106,9 @@ class CustomEmojiState extends ConsumerState { ); break; case EmojiType.twemoji: - cachedImage = FittedBox( - fit: BoxFit.fitHeight, - child: TwemojiText( - text: emojiData.char, - strutStyle: StrutStyle( - height: 1.0, - forceStrutHeight: true, - fontSize: scopedFontSize), - style: style.merge(AppTheme.of(context).unicodeEmojiStyle), - ), + cachedImage = Twemoji( + height: scopedFontSize, + emoji: emojiData.char, ); break; } diff --git a/lib/view/common/misskey_notes/reaction_button.dart b/lib/view/common/misskey_notes/reaction_button.dart index 0978f7776..7adc384ed 100644 --- a/lib/view/common/misskey_notes/reaction_button.dart +++ b/lib/view/common/misskey_notes/reaction_button.dart @@ -122,6 +122,8 @@ class ReactionButtonState extends ConsumerState { backgroundColor: MaterialStatePropertyAll(backgroundColor)), child: Row( mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.center, children: [ ConstrainedBox( constraints: BoxConstraints(