1
0
mirror of git://jb55.com/damus synced 2024-09-16 02:03:45 +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:
Daniel D’Aquino 2023-10-13 12:24:55 -07:00 committed by William Casarin
parent 82fba88cc4
commit edb23e4e70

View File

@ -66,12 +66,14 @@ struct EventProfileName: View {
.font(.body.weight(.bold))
case .both(username: let username, displayName: let displayName):
Text(verbatim: displayName)
.font(.body.weight(.bold))
Text(verbatim: username)
.foregroundColor(.gray)
.font(eventviewsize_to_font(size, font_size: damus_state.settings.font_size))
HStack(spacing: 6) {
Text(verbatim: displayName)
.font(.body.weight(.bold))
Text(verbatim: "@\(username)")
.foregroundColor(.gray)
.font(eventviewsize_to_font(size, font_size: damus_state.settings.font_size))
}
}
/*