Truncate long notes (#715)

Changelog-Added: Truncate large posts and add a show more button
This commit is contained in:
OlegAba
2023-03-01 09:57:39 -08:00
committed by William Casarin
parent 77f5268336
commit 6b1f57d6d0
4 changed files with 40 additions and 7 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ struct EventBody: View {
ReplyDescription(event: event, profiles: damus_state.profiles)
}
NoteContentView(damus_state: damus_state, event: event, show_images: should_show_img, size: size, artifacts: .just_content(content))
NoteContentView(damus_state: damus_state, event: event, show_images: should_show_img, size: size, artifacts: .just_content(content), truncate: true)
.frame(maxWidth: .infinity, alignment: .leading)
}
}