mirror of
https://github.com/block/buzz.git
synced 2026-11-05 08:51:10 +00:00
feat(mobile): add user profile sheet and polish bottom sheets (#453)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
5
mobile/lib/shared/utils/string_utils.dart
Normal file
5
mobile/lib/shared/utils/string_utils.dart
Normal file
@@ -0,0 +1,5 @@
|
||||
/// Truncates a hex pubkey to the first 8 characters with an ellipsis.
|
||||
String shortPubkey(String pubkey) {
|
||||
if (pubkey.length > 12) return '${pubkey.substring(0, 8)}\u2026';
|
||||
return pubkey;
|
||||
}
|
||||
Reference in New Issue
Block a user