From c734321a938a222fcf230c12778ce613d0ddd95f Mon Sep 17 00:00:00 2001 From: sherlock Date: Thu, 14 Dec 2023 12:13:55 +0700 Subject: [PATCH] hot-fix: fix overflow height in reply contaienr --- lib/pages/chat/events/reply_content_style.dart | 2 ++ lib/pages/chat/reply_display.dart | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/pages/chat/events/reply_content_style.dart b/lib/pages/chat/events/reply_content_style.dart index bdd4c5ff0..0269774af 100644 --- a/lib/pages/chat/events/reply_content_style.dart +++ b/lib/pages/chat/events/reply_content_style.dart @@ -61,4 +61,6 @@ class ReplyContentStyle { EdgeInsetsDirectional.symmetric( vertical: 4.0 * AppConfig.bubbleSizeFactor, ); + + static const double replyContainerHeight = 60; } diff --git a/lib/pages/chat/reply_display.dart b/lib/pages/chat/reply_display.dart index b6ca068b3..705ab65e2 100644 --- a/lib/pages/chat/reply_display.dart +++ b/lib/pages/chat/reply_display.dart @@ -7,6 +7,7 @@ import 'package:fluffychat/utils/matrix_sdk_extensions/matrix_locals.dart'; import '../../config/themes.dart'; import 'chat.dart'; import 'events/reply_content.dart'; +import 'events/reply_content_style.dart'; class ReplyDisplay extends StatelessWidget { final ChatController controller; @@ -25,7 +26,7 @@ class ReplyDisplay extends StatelessWidget { duration: TwakeThemes.animationDuration, curve: TwakeThemes.animationCurve, height: controller.editEvent != null || controller.replyEvent != null - ? 56 + ? ReplyContentStyle.replyContainerHeight : 0, clipBehavior: Clip.hardEdge, decoration: const BoxDecoration(),