Fix issue where very long names would appear in two lines on the chat event view

Closes: https://github.com/damus-io/damus/issues/2329
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
This commit is contained in:
Daniel D’Aquino
2024-07-13 00:32:00 +00:00
committed by William Casarin
parent 2b0a7d126d
commit 605d88add1

View File

@@ -107,6 +107,7 @@ struct ChatEventView: View {
.onTapGesture {
show_profile_action_sheet_if_enabled(damus_state: damus_state, pubkey: event.pubkey)
}
.lineLimit(1)
Text(verbatim: "\(format_relative_time(event.created_at))")
.foregroundColor(.gray)
}