chadtmiller.com/knotless
git that lives in your Atmosphere account
1
10
The iOS app's folded description reads as it does opened
ios/Knotless/Views/ThreadView.swift+3−0
| @@ -296,6 +296,9 @@ struct ThreadView: View { | ||
if let text, !text.isEmpty { | ||
if text.count > 800, !expanded { | ||
MarkdownView(source: String(text.prefix(2000)), html: html, place: MarkdownPlace(repo: repo, subject: uri)) | ||
// Its whole height and then cut, or its text is squeezed to | ||
// fit and truncates, rather than reading as it does opened. | ||
.fixedSize(horizontal: false, vertical: true) | ||
.frame(maxHeight: 360, alignment: .top) | ||
.clipped() | ||
.mask(LinearGradient(stops: [.init(color: .black, location: 0.7), .init(color: .clear, location: 1)], startPoint: .top, endPoint: .bottom)) | ||