notes: only show first line in notes list page
- Commit
785524f2839bb5d7cf0a6d172f8eeb2584ec3e87- Author
- Vayun <[email protected]>
- When
- 2026-01-17 23:04 UTC (10 months ago)
- Parents
0688aaf
Diff
notes/src/main/java/com/vayunmathur/notes/ui/NotesListPage.kt
diff --git a/notes/src/main/java/com/vayunmathur/notes/ui/NotesListPage.kt b/notes/src/main/java/com/vayunmathur/notes/ui/NotesListPage.ktindex 2a4669b33b..4d27c3f06c 100644--- a/notes/src/main/java/com/vayunmathur/notes/ui/NotesListPage.kt+++ b/notes/src/main/java/com/vayunmathur/notes/ui/NotesListPage.kt@@ -21,6 +21,6 @@ fun NoteListItem(note: Note, onClick: () -> Unit) { ListItem( { Text(note.title) }, Modifier.clickable { onClick() },- supportingContent = { Text(note.content.take(40)) }+ supportingContent = { Text(note.content.substringBefore('\n').take(40)) } ) }\ No newline at end of file