💄 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,
);
},
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)