Skip to content

Commit

Permalink
hot-fix: fix overflow height in reply contaienr
Browse files Browse the repository at this point in the history
  • Loading branch information
sherlockvn authored and hoangdat committed Dec 14, 2023
1 parent 08169af commit c734321
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/pages/chat/events/reply_content_style.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,6 @@ class ReplyContentStyle {
EdgeInsetsDirectional.symmetric(
vertical: 4.0 * AppConfig.bubbleSizeFactor,
);

static const double replyContainerHeight = 60;
}
3 changes: 2 additions & 1 deletion lib/pages/chat/reply_display.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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(),
Expand Down

0 comments on commit c734321

Please sign in to comment.