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