🐛 Post auto warp

This commit is contained in:
LittleSheep 2025-01-14 23:24:11 +08:00
parent c1b9090e51
commit a4f81f6ba1

View File

@ -880,6 +880,7 @@ class _PostContentBody extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
if (data.body['content'] == null) return const SizedBox.shrink(); if (data.body['content'] == null) return const SizedBox.shrink();
final content = MarkdownTextContent( final content = MarkdownTextContent(
isAutoWarp: data.type == 'story',
isEnlargeSticker: true, isEnlargeSticker: true,
textScaler: isEnlarge ? TextScaler.linear(1.1) : null, textScaler: isEnlarge ? TextScaler.linear(1.1) : null,
content: data.body['content'], content: data.body['content'],