From e60acce0c8a681389d4946b80cfa3e7318cd907b Mon Sep 17 00:00:00 2001 From: Hasinjato Date: Tue, 13 Oct 2026 10:48:07 +0300 Subject: [PATCH] =?UTF-8?q?Summarize=20verses=20on=20song=20playlist;=201,?= =?UTF-8?q?2,3=E2=86=92=201-3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/mg/dot/feufaro/ui/SimpleDrawerContent.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/composeApp/src/commonMain/kotlin/mg/dot/feufaro/ui/SimpleDrawerContent.kt b/composeApp/src/commonMain/kotlin/mg/dot/feufaro/ui/SimpleDrawerContent.kt index bc54332..03daf08 100644 --- a/composeApp/src/commonMain/kotlin/mg/dot/feufaro/ui/SimpleDrawerContent.kt +++ b/composeApp/src/commonMain/kotlin/mg/dot/feufaro/ui/SimpleDrawerContent.kt @@ -333,7 +333,7 @@ fun SimpleDrawerContent( contentTitle = di?.contentTitle ?: "chant introuvable", selected = di != null && di.path == activePath, enabled = di != null, - stz = song.entry.stanzas, + stzS = song.entry.stanzas.toSet(), onClick = { if (di != null) { scope.launch { @@ -664,10 +664,11 @@ fun DrawerPlaylistSongRow( contentTitle: String, selected: Boolean, enabled: Boolean, - stz: List, + stzS: Set, onClick: () -> Unit, ) { - val verses = if(stz.isEmpty()) "" else ": ${stz.joinToString(", ")}" + val stz = summarizeVerses(stzS) + val verses = if(stzS.isEmpty()) "" else ": ${stz}" NavigationDrawerItem( icon = { Text("♪", fontSize = 20.sp)