Message detail (action sheet) shows full sent at date

This commit is contained in:
2025-10-24 00:50:51 +08:00
parent bd903ce29c
commit 327b4c04f1
3 changed files with 18 additions and 4 deletions

View File

@@ -1254,5 +1254,6 @@
"upgradeRequired": "Upgrade required",
"settingsDisableAnimation": "Disable Animation",
"addTag": "Add Tag",
"postFeaturedIn": "Post featured on {}"
"postFeaturedIn": "Post featured on {}",
"messageSentAt": "Sent at {}"
}

View File

@@ -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<MessageActionSheet> {
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<MessageActionSheet> {
},
),
Gap(MediaQuery.of(context).padding.bottom),
Gap(MediaQuery.of(context).padding.bottom + 32),
],
),
),

View File

@@ -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)