Wrap channel bubble metadata row on narrow screens

This commit is contained in:
zjs81 committed 2026-11-21 02:41:05 -07:00
1 parent f96bf31444
commit b649d8373d
2 files changed
+27 -25

No files matched your search

+24 -23
View File
@@ -1423,8 +1423,10 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
bottom: 4,
)
: EdgeInsets.zero,
child: Row(
mainAxisSize: MainAxisSize.min,
child: Wrap(
spacing: 4,
runSpacing: 2,
crossAxisAlignment: WrapCrossAlignment.center,
children: [
Text(
formatChatTime(context, message.timestamp),
@@ -1433,30 +1435,30 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
color: metaColor,
),
),
if (message.hasFutureTimestamp) ...[
const SizedBox(width: 4),
if (message.hasFutureTimestamp)
FutureTimestampIndicator(size: 16 * textScale),
],
if (enableTracing &&
!isOutgoing &&
message.repeatCount > 0) ...[
const SizedBox(width: 6),
Icon(
Icons.repeat,
size: 14 * textScale,
color: metaColor,
message.repeatCount > 0)
Row(
mainAxisSize: MainAxisSize.min,
children: [
Icon(
Icons.repeat,
size: 14 * textScale,
color: metaColor,
),
const SizedBox(width: 2),
Text(
'${message.repeatCount}',
style: MeshTheme.mono(
fontSize: 12 * textScale,
color: metaColor,
),
),
],
),
const SizedBox(width: 2),
Text(
'${message.repeatCount}',
style: MeshTheme.mono(
fontSize: 12 * textScale,
color: metaColor,
),
),
],
if (isOutgoing) ...[
const SizedBox(width: 4),
if (isOutgoing)
MessageStatusIcon(
size: 16 * textScale,
isAcked: false,
@@ -1476,7 +1478,6 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
ChannelMessageStatus.failed,
onColor: metaColor,
),
],
],
),
),
+3 -2
View File
@@ -58,8 +58,9 @@ class _ToggleConnector extends MeshCoreConnector {
bool get isConnected => connected;
}
DateTime _at(int seconds) =>
DateTime.fromMillisecondsSinceEpoch(1700000000000 + seconds * 1000);
// Two-digit local hour (10:13 PM / 22:13) so narrow 2.0x text checks the wide
// timestamp layout regardless of host timezone.
DateTime _at(int seconds) => DateTime(2023, 11, 14, 22, 13, seconds);
Future<void> _seedRadio() async {
final alice = Contact(