diff --git a/packages/stream_chat_flutter/lib/src/message_actions_modal/message_actions_modal.dart b/packages/stream_chat_flutter/lib/src/message_actions_modal/message_actions_modal.dart index da405247..970f4d28 100644 --- a/packages/stream_chat_flutter/lib/src/message_actions_modal/message_actions_modal.dart +++ b/packages/stream_chat_flutter/lib/src/message_actions_modal/message_actions_modal.dart @@ -148,7 +148,7 @@ class _MessageActionsModalState extends State { ); }, ), - const SizedBox(height: 8), + const SizedBox(height: 10), IgnorePointer( child: widget.messageWidget, ), @@ -294,13 +294,13 @@ class _MessageActionsModalState extends State { offset necessary for the position of reaction look the best way possible. */ - const offsetConstant = 2700; - final offsetCorrection = maxWidth / offsetConstant; + const positiveConstant = 2700; + const negativeConstant = 1700; if (maxWidth <= 752) { - result = shiftFactor - offsetCorrection; + result = shiftFactor - maxWidth / negativeConstant; } else { - result = shiftFactor + offsetCorrection; + result = shiftFactor + maxWidth / positiveConstant; } } else { result = 1.2 - divFactor; diff --git a/packages/stream_chat_flutter/lib/src/message_widget/reactions/message_reactions_modal.dart b/packages/stream_chat_flutter/lib/src/message_widget/reactions/message_reactions_modal.dart index e87a8970..5cc804d1 100644 --- a/packages/stream_chat_flutter/lib/src/message_widget/reactions/message_reactions_modal.dart +++ b/packages/stream_chat_flutter/lib/src/message_widget/reactions/message_reactions_modal.dart @@ -84,7 +84,7 @@ class StreamMessageReactionsModal extends StatelessWidget { message: message, ), ), - const SizedBox(height: 8), + const SizedBox(height: 10), IgnorePointer( child: messageWidget, ),