From d4e380a97a6c7fadd712e6b032a159c62d1dd775 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Thu, 23 Oct 2025 01:32:38 +0800 Subject: [PATCH] :recycle: Moved the pinned to the metadata --- lib/widgets/post/post_shared.dart | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/lib/widgets/post/post_shared.dart b/lib/widgets/post/post_shared.dart index 3f79cf2c..a1699286 100644 --- a/lib/widgets/post/post_shared.dart +++ b/lib/widgets/post/post_shared.dart @@ -547,14 +547,6 @@ class PostHeader extends StatelessWidget { Widget build(BuildContext context) { return Column( children: [ - if (item.pinMode != null) - Row( - spacing: 4, - children: [ - const Icon(Symbols.keep, size: 15, fill: 1), - Text('pinnedPost').tr().fontSize(13), - ], - ).opacity(0.8).padding(horizontal: 8, bottom: 4), Row( crossAxisAlignment: CrossAxisAlignment.center, spacing: 12, @@ -689,6 +681,17 @@ class PostBody extends ConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { final metadataChildren = []; + if (item.pinMode != null) { + metadataChildren.add( + Row( + spacing: 8, + children: [ + const Icon(Symbols.push_pin, size: 16), + Text('pinnedPost'.tr()).fontSize(13), + ], + ), + ); + } if (item.tags.isNotEmpty) { metadataChildren.add( Wrap(