ui: add note truncation

Truncate notes by default. We still need a show more button though
This commit is contained in:
William Casarin
2025-04-22 10:48:11 -07:00
parent e4658df847
commit c4084a1fb5
4 changed files with 63 additions and 19 deletions

View File

@@ -114,6 +114,11 @@ impl<'a, 'd> NoteView<'a, 'd> {
self
}
pub fn truncate(mut self, enable: bool) -> Self {
self.options_mut().set_truncate(enable);
self
}
pub fn small_pfp(mut self, enable: bool) -> Self {
self.options_mut().set_small_pfp(enable);
self