Fix stale map labels, avatar initials and offline bubble widths

- Map node labels follow light/dark theme changes.
- Avatar initials use only letters and digits; hop avatars fall back to the
  hash prefix.
- Incoming channel bubbles are the same width connected and offline.
- Day separators wrap instead of overflowing with large text.
This commit is contained in:
zjs81 committed 2026-11-20 16:04:50 -07:00
1 parent 34ea0cb7ca
commit 92dadb0d3a
12 files changed
+642 -48

No files matched your search

+27 -14
View File
@@ -44,21 +44,34 @@ class ChatDaySeparator extends StatelessWidget {
);
return Padding(
padding: const EdgeInsets.symmetric(vertical: 10),
child: Row(
children: [
line,
const SizedBox(width: 10),
Text(
formatChatDayLabel(context, day),
style: MeshTheme.mono(
fontSize: 12,
fontWeight: FontWeight.w600,
color: color,
child: LayoutBuilder(
// Large text on a narrow phone wraps the label instead of overflowing;
// each rule keeps at least 16dp.
builder: (context, constraints) => Row(
children: [
line,
const SizedBox(width: 10),
ConstrainedBox(
constraints: BoxConstraints(
maxWidth: (constraints.maxWidth - 2 * (10 + 16)).clamp(
0.0,
double.infinity,
),
),
child: Text(
formatChatDayLabel(context, day),
textAlign: TextAlign.center,
style: MeshTheme.mono(
fontSize: 12,
fontWeight: FontWeight.w600,
color: color,
),
),
),
),
const SizedBox(width: 10),
line,
],
const SizedBox(width: 10),
line,
],
),
),
);
}