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:
committed by
William Casarin
parent
82fba88cc4
commit
edb23e4e70
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user