From 3d8315d09b0d6164775610465b643bea419046e7 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Thu, 27 Jun 2024 00:33:49 +0800 Subject: [PATCH] :bug: Fix post item missing avatar in replies --- lib/widgets/posts/post_item.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/widgets/posts/post_item.dart b/lib/widgets/posts/post_item.dart index fd0b532..4cd0033 100644 --- a/lib/widgets/posts/post_item.dart +++ b/lib/widgets/posts/post_item.dart @@ -58,10 +58,15 @@ class _PostItemState extends State { Widget buildHeader() { return Row( children: [ + if (widget.isCompact) + AccountAvatar( + content: item.author.avatar.toString(), + radius: 10, + ).paddingOnly(left: 2), Text( item.author.nick, style: const TextStyle(fontWeight: FontWeight.bold), - ).paddingOnly(left: 12), + ).paddingOnly(left: 6), buildDate().paddingOnly(left: 4), ], );