💄 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,11 +251,14 @@ class _ChatMessageText extends StatelessWidget {
buttonItems: items, buttonItems: items,
); );
}, },
child: Container(
constraints: const BoxConstraints(maxWidth: 480),
child: MarkdownTextContent( child: MarkdownTextContent(
content: data.body['text'], content: data.body['text'],
isAutoWarp: true, isAutoWarp: true,
), ),
), ),
),
if (data.updatedAt != data.createdAt) if (data.updatedAt != data.createdAt)
Text( Text(
'messageEditedHint'.tr(), 'messageEditedHint'.tr(),