🐛 Fix post item padding

This commit is contained in:
LittleSheep 2025-07-03 13:12:39 +08:00
parent 2ad85addf6
commit 99ff78a3d5

View File

@ -384,7 +384,12 @@ class PostItem extends HookConsumerWidget {
// Show truncation hint if post is truncated // Show truncation hint if post is truncated
if (item.isTruncated && !isFullPost && item.type != 1) if (item.isTruncated && !isFullPost && item.type != 1)
_PostTruncateHint().padding( _PostTruncateHint().padding(
bottom: item.attachments.isNotEmpty ? 8 : null, bottom:
(item.attachments.isNotEmpty ||
item.repliedPost != null ||
item.forwardedPost != null)
? 8
: null,
), ),
if ((item.repliedPost != null || if ((item.repliedPost != null ||
item.forwardedPost != null) && item.forwardedPost != null) &&