From c4270fa34a33bf28e9f7275f5d78f078f25040ba Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Fri, 13 Mar 2026 13:18:56 -0400 Subject: [PATCH] fix image alignment --- lib/widgets/chat_page/html/html.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/widgets/chat_page/html/html.dart b/lib/widgets/chat_page/html/html.dart index 65d45dd..1e1ab82 100644 --- a/lib/widgets/chat_page/html/html.dart +++ b/lib/widgets/chat_page/html/html.dart @@ -51,8 +51,9 @@ class Html extends ConsumerWidget { "img" => element.attributes["src"] == null - ? null + ? SizedBox.shrink() : InlineCustomWidget( + alignment: PlaceholderAlignment.middle, child: Image.network( Uri.parse(element.attributes["src"]!) .mxcToHttps( @@ -125,9 +126,7 @@ class Html extends ConsumerWidget { .mapTo?>( (key, value) => switch (key) { "data-mx-color" => MapEntry("color", value), - "data-mx-bg-color" => MapEntry("background-color", value), - _ => null, }, )