💄 Optimize chat max width

This commit is contained in:
LittleSheep 2025-01-14 23:30:35 +08:00
parent a4f81f6ba1
commit 25942c2338

View File

@ -251,9 +251,12 @@ class _ChatMessageText extends StatelessWidget {
buttonItems: items, buttonItems: items,
); );
}, },
child: MarkdownTextContent( child: Container(
content: data.body['text'], constraints: const BoxConstraints(maxWidth: 480),
isAutoWarp: true, child: MarkdownTextContent(
content: data.body['text'],
isAutoWarp: true,
),
), ),
), ),
if (data.updatedAt != data.createdAt) if (data.updatedAt != data.createdAt)