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)