From 25942c2338b192bf27bb764b3168932464fcb069 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Tue, 14 Jan 2025 23:30:35 +0800 Subject: [PATCH] :lipstick: Optimize chat max width --- lib/widgets/chat/chat_message.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/widgets/chat/chat_message.dart b/lib/widgets/chat/chat_message.dart index 74e5517..547c9f1 100644 --- a/lib/widgets/chat/chat_message.dart +++ b/lib/widgets/chat/chat_message.dart @@ -251,9 +251,12 @@ class _ChatMessageText extends StatelessWidget { buttonItems: items, ); }, - child: MarkdownTextContent( - content: data.body['text'], - isAutoWarp: true, + child: Container( + constraints: const BoxConstraints(maxWidth: 480), + child: MarkdownTextContent( + content: data.body['text'], + isAutoWarp: true, + ), ), ), if (data.updatedAt != data.createdAt)