From 757f1b880c4a5d2586dd3b10eda8cb41030adbcc Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Wed, 7 Jan 2026 01:22:28 +0800 Subject: [PATCH] :bug: Fix explore pagination placeholder maxWidth --- lib/screens/explore.dart | 2 +- lib/widgets/post/post_item_skeleton.dart | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/screens/explore.dart b/lib/screens/explore.dart index eee15f90..0af1b2ff 100644 --- a/lib/screens/explore.dart +++ b/lib/screens/explore.dart @@ -317,7 +317,7 @@ class ExploreScreen extends HookConsumerWidget { // Sliver list cannot provide refresh handled by the pagination list isRefreshable: false, isSliver: true, - footerSkeletonChild: const PostItemSkeleton(), + footerSkeletonChild: const PostItemSkeleton(maxWidth: double.infinity), contentBuilder: (data, footer) => _ActivityListView(data: data, isWide: isWide, footer: footer), ); diff --git a/lib/widgets/post/post_item_skeleton.dart b/lib/widgets/post/post_item_skeleton.dart index 2f41ef82..fe11b38c 100644 --- a/lib/widgets/post/post_item_skeleton.dart +++ b/lib/widgets/post/post_item_skeleton.dart @@ -10,6 +10,7 @@ class PostItemSkeleton extends StatelessWidget { final bool isEmbedReply; final bool isCompact; final double? borderRadius; + final double maxWidth; const PostItemSkeleton({ super.key, @@ -19,6 +20,7 @@ class PostItemSkeleton extends StatelessWidget { this.isEmbedReply = false, this.isCompact = false, this.borderRadius, + this.maxWidth = 640, }); @override @@ -28,7 +30,7 @@ class PostItemSkeleton extends StatelessWidget { return Center( child: ConstrainedBox( - constraints: BoxConstraints(maxWidth: 640), + constraints: BoxConstraints(maxWidth: maxWidth), child: Card( margin: EdgeInsets.only(bottom: 8), child: Column(