fix: mxc reactions not rendered correctly

This commit is contained in:
krille-chan 2024-05-05 09:28:57 +02:00
parent e9d04b7217
commit 8260480d90
No known key found for this signature in database

View file

@ -112,7 +112,6 @@ class _Reaction extends StatelessWidget {
? Colors.white
: Colors.black;
final color = Theme.of(context).colorScheme.background;
final fontSize = DefaultTextStyle.of(context).style.fontSize;
Widget content;
if (reactionKey.startsWith('mxc://')) {
content = Row(
@ -120,8 +119,9 @@ class _Reaction extends StatelessWidget {
children: <Widget>[
MxcImage(
uri: Uri.parse(reactionKey),
width: 9999,
height: fontSize,
width: 20,
height: 20,
animated: false,
),
if (count > 1) ...[
const SizedBox(width: 4),