mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-20 18:04:18 +01:00
ui: add note truncation
Truncate notes by default. We still need a show more button though
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user