mirror of
git://jb55.com/damus
synced 2024-09-18 19:23:49 +00:00
ui: prefix username with @
character, fix spacing
Closes: https://github.com/damus-io/damus/issues/1559 Changelog-Fixed: Add more spacing between display name and username, and prefix username with `@` character
This commit is contained in:
parent
82fba88cc4
commit
edb23e4e70
@ -66,13 +66,15 @@ struct EventProfileName: View {
|
||||
.font(.body.weight(.bold))
|
||||
|
||||
case .both(username: let username, displayName: let displayName):
|
||||
HStack(spacing: 6) {
|
||||
Text(verbatim: displayName)
|
||||
.font(.body.weight(.bold))
|
||||
|
||||
Text(verbatim: username)
|
||||
Text(verbatim: "@\(username)")
|
||||
.foregroundColor(.gray)
|
||||
.font(eventviewsize_to_font(size, font_size: damus_state.settings.font_size))
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
if let nip05 = current_nip05 {
|
||||
|
Loading…
Reference in New Issue
Block a user