diff --git a/assets/i18n/en-US.json b/assets/i18n/en-US.json index 34e2f135..65a25b75 100644 --- a/assets/i18n/en-US.json +++ b/assets/i18n/en-US.json @@ -1254,5 +1254,6 @@ "upgradeRequired": "Upgrade required", "settingsDisableAnimation": "Disable Animation", "addTag": "Add Tag", - "postFeaturedIn": "Post featured on {}" + "postFeaturedIn": "Post featured on {}", + "messageSentAt": "Sent at {}" } diff --git a/lib/widgets/chat/message_item.dart b/lib/widgets/chat/message_item.dart index 7b158e9a..74eb6a05 100644 --- a/lib/widgets/chat/message_item.dart +++ b/lib/widgets/chat/message_item.dart @@ -13,6 +13,7 @@ import 'package:island/pods/chat/chat_rooms.dart'; import 'package:island/pods/chat/messages_notifier.dart'; import 'package:island/pods/translate.dart'; import 'package:island/pods/config.dart'; +import 'package:island/services/time.dart'; import 'package:island/widgets/account/account_pfc.dart'; import 'package:island/widgets/chat/message_content.dart'; import 'package:island/widgets/chat/message_indicators.dart'; @@ -398,7 +399,19 @@ class _MessageActionSheetState extends State { const Gap(4), ], - const Gap(8), + Row( + spacing: 6, + children: [ + Icon(Symbols.send, size: 16), + Text( + 'messageSentAt'.tr( + args: [widget.message.createdAt.formatSystem()], + ), + ).fontSize(13), + ], + ).opacity(0.75).padding(horizontal: 20, top: 8, bottom: 6), + + const Divider(), // Action buttons if (widget.isCurrentUser) @@ -478,7 +491,7 @@ class _MessageActionSheetState extends State { }, ), - Gap(MediaQuery.of(context).padding.bottom), + Gap(MediaQuery.of(context).padding.bottom + 32), ], ), ), diff --git a/lib/widgets/post/post_shared.dart b/lib/widgets/post/post_shared.dart index b594c66a..3ceaa82d 100644 --- a/lib/widgets/post/post_shared.dart +++ b/lib/widgets/post/post_shared.dart @@ -798,7 +798,7 @@ class PostBody extends ConsumerWidget { children: [ const Icon(Symbols.highlight, size: 16), Text( - 'postFeaturedIn'.tr( + 'postFeaturedOn'.tr( args: [ item.featuredRecords .map((e) => e.featuredAt ?? e.createdAt)