commit bf3ca4a1869adc15d614c3976a62b8db3276377b
parent 53c2b3a48ddcd9ec06f602c8287efb6040d01354
Author: William Casarin <jb55@jb55.com>
Date: Wed, 23 Aug 2023 16:23:18 -0700
status: truncate statuses to a single line
Changelog-Fixed: Fix long status lines
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/damus/Components/Status/UserStatusView.swift b/damus/Components/Status/UserStatusView.swift
@@ -13,15 +13,17 @@ struct UserStatusView: View {
@ObservedObject var status: UserStatusModel
var body: some View {
- VStack(alignment: .leading, spacing: 0) {
+ VStack(alignment: .leading, spacing: 2) {
if let general = status.general {
Text(verbatim: "\(general.content)")
+ .lineLimit(1)
.foregroundColor(.gray)
.font(.callout.italic())
}
if let playing = status.music {
Text(verbatim: "🎵\(playing.content)")
+ .lineLimit(1)
.foregroundColor(.gray)
.font(.callout.italic())
}