From aec536666f912422d350840593b0aa2a9122ebce Mon Sep 17 00:00:00 2001 From: klockky Date: Fri, 10 Jul 2026 13:28:49 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=BE=D0=B3=D1=80=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=87=D0=B8=D0=BB=20=D1=88=D0=B8=D1=80=D0=B8=D0=BD=D1=83=20?= =?UTF-8?q?=D0=BF=D1=83=D0=B7=D1=8B=D1=80=D1=8F=20=D1=81=D0=BE=D0=BE=D0=B1?= =?UTF-8?q?=D1=89=D0=B5=D0=BD=D0=B8=D1=8F=20(=D0=BA=D0=B0=D0=BF=20560dp)?= =?UTF-8?q?=20=E2=80=94=20=D0=BD=D0=B5=20=D0=B2=D1=8B=D0=BB=D0=B5=D0=B7?= =?UTF-8?q?=D0=B0=D0=B5=D1=82=20=D0=B7=D0=B0=20=D1=8D=D0=BA=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=20(#43)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/frontend/widgets/message_bubble.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/frontend/widgets/message_bubble.dart b/lib/frontend/widgets/message_bubble.dart index 70d0b06..2871a8c 100644 --- a/lib/frontend/widgets/message_bubble.dart +++ b/lib/frontend/widgets/message_bubble.dart @@ -1,4 +1,5 @@ import 'dart:async'; +import 'dart:math' as math; import 'package:cached_network_image/cached_network_image.dart'; import 'package:flutter/foundation.dart'; @@ -465,7 +466,7 @@ class MessageBubble extends StatelessWidget { chatType == "CHAT" && prevMessage?.senderId != message.senderId; - final maxBubbleWidth = MediaQuery.sizeOf(context).width * 0.75; + final maxBubbleWidth = math.min(MediaQuery.sizeOf(context).width * 0.75, 560.0); final keyboard = _inlineKeyboard; final isVideoNote = _isVideoNote; final noBubbleBackground = isVideoNote || _isSticker;