mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-23 17:21:06 +10:00
Improve path formatting in message bubble to use zero-width space for better visual presentation
This commit is contained in:
@@ -1579,11 +1579,12 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String _formatPathPrefixes(Uint8List pathBytes) {
|
String _formatPathPrefixes(Uint8List pathBytes) {
|
||||||
// Join with ", " (not bare ",") so long paths have soft-wrap break points
|
// Join with a comma + zero-width space (not ", ") so paths render as
|
||||||
// and stay confined to the message bubble instead of overflowing right.
|
// "5B,56,65" with no visible gap, while still giving long paths soft-wrap
|
||||||
|
// break points that keep them confined to the message bubble.
|
||||||
return pathBytes
|
return pathBytes
|
||||||
.map((b) => b.toRadixString(16).padLeft(2, '0').toUpperCase())
|
.map((b) => b.toRadixString(16).padLeft(2, '0').toUpperCase())
|
||||||
.join(', ');
|
.join(',');
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> openRegionSelectDialog(Channel channel) async {
|
Future<void> openRegionSelectDialog(Channel channel) async {
|
||||||
|
|||||||
Reference in New Issue
Block a user