From bf3ca4a1869adc15d614c3976a62b8db3276377b Mon Sep 17 00:00:00 2001 From: William Casarin Date: Wed, 23 Aug 2023 16:23:18 -0700 Subject: [PATCH] status: truncate statuses to a single line Changelog-Fixed: Fix long status lines --- damus/Components/Status/UserStatusView.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/damus/Components/Status/UserStatusView.swift b/damus/Components/Status/UserStatusView.swift index 8f765dae..d3d1d367 100644 --- 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()) }