~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/knotless

git that lives in your Atmosphere account

knotless.dev
1 collaborator

knotless 0.13.0 Latest 2 packages, 1 image

1
10

The iOS app's folded description reads as it does opened

Merged chadtmiller.com asked to merge into main from chadtmiller.com/knotless:ios/read-more
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))