This commit is contained in:
Jonas Braus committed 2026-11-05 00:08:13 +01:00
1 parent 9d4f7c3db8
commit f572b6b57d
3 files changed
+8 -11

No files matched your search

+2 -2
View File
@@ -35,9 +35,9 @@ pub fn get_notes_list(search: &str) -> Vec<Note> {
let mut notes = Vec::new();
for note in note_iter.expect("Failed to query notes") {
let mut _note = note.expect("Failed to get note");
_note.text = _note.text.replace("\n", "<br>").chars().take(57).collect();
_note.text = _note.text.replace("\n", "<br>").chars().take(40).collect();
if _note.text.len() >= 57 {
if _note.text.len() >= 40 {
_note.text.push_str("...");
}