💄 Enlarge emote when there is only one

This commit is contained in:
2025-02-23 14:40:40 +08:00
parent 6d0145c335
commit 153eabcbf2
3 changed files with 136 additions and 58 deletions

View File

@ -297,6 +297,8 @@ class _ChatMessageText extends StatelessWidget {
child: MarkdownTextContent(
content: data.body['text'],
isAutoWarp: true,
isEnlargeSticker:
RegExp(r"^:([-\w]+):$").hasMatch(data.body['text'] ?? ''),
),
),
),