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,12 +66,14 @@ struct EventProfileName: View {
|
|||||||
.font(.body.weight(.bold))
|
.font(.body.weight(.bold))
|
||||||
|
|
||||||
case .both(username: let username, displayName: let displayName):
|
case .both(username: let username, displayName: let displayName):
|
||||||
Text(verbatim: displayName)
|
HStack(spacing: 6) {
|
||||||
.font(.body.weight(.bold))
|
Text(verbatim: displayName)
|
||||||
|
.font(.body.weight(.bold))
|
||||||
Text(verbatim: username)
|
|
||||||
.foregroundColor(.gray)
|
Text(verbatim: "@\(username)")
|
||||||
.font(eventviewsize_to_font(size, font_size: damus_state.settings.font_size))
|
.foregroundColor(.gray)
|
||||||
|
.font(eventviewsize_to_font(size, font_size: damus_state.settings.font_size))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user