summaryrefslogtreecommitdiff
path: root/Hutch
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-12 11:54:47 -0500
committerChristian Cleberg <[email protected]>2026-04-12 11:54:47 -0500
commit92fb89cd35588ee36190c95b1af1e9595b397fae (patch)
tree7aeac789933ebe40fdbb29fd9d401f42ffe25c86 /Hutch
parent9e48e4681487b1c69577c0e9e5f83d8d8225e494 (diff)
downloadhutch-92fb89cd35588ee36190c95b1af1e9595b397fae.tar.gz
hutch-92fb89cd35588ee36190c95b1af1e9595b397fae.tar.bz2
hutch-92fb89cd35588ee36190c95b1af1e9595b397fae.zip
fix: ensure looked-up users' bios render correctly
Diffstat (limited to 'Hutch')
-rw-r--r--Hutch/Views/Lookup/UserProfileView.swift7
1 files changed, 5 insertions, 2 deletions
diff --git a/Hutch/Views/Lookup/UserProfileView.swift b/Hutch/Views/Lookup/UserProfileView.swift
index b467c63..b694738 100644
--- a/Hutch/Views/Lookup/UserProfileView.swift
+++ b/Hutch/Views/Lookup/UserProfileView.swift
@@ -74,9 +74,12 @@ struct UserProfileView: View {
}
}
- if let bio = user.bio {
+ if let bio = user.bio, !bio.isEmpty {
Section("Bio") {
- Text(bio)
+ Text(profileBioAttributedString(bio))
+ .frame(maxWidth: .infinity, alignment: .leading)
+ .tint(.accentColor)
+ .textSelection(.enabled)
}
}