From 4bc40e9128d22a4799f7128fc8cbe8dbd61d8af4 Mon Sep 17 00:00:00 2001 From: Rene Luria Date: Thu, 6 Aug 2026 17:55:51 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20correct=20'n=C3=A9e'=20to=20'n=C3=A9'=20?= =?UTF-8?q?and=20show=20position=20as=20trailing=20badge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix French: 'née' → 'né' for player birth year - Move position (F/D/G) from supportingContent to trailingContent as an AssistChip badge (secondaryContainer), matching the number avatar style --- .../myicek/ui/screens/EventDetailScreen.kt | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/composeApp/src/commonMain/kotlin/ch/parano/myicek/ui/screens/EventDetailScreen.kt b/composeApp/src/commonMain/kotlin/ch/parano/myicek/ui/screens/EventDetailScreen.kt index 0965719..d5ae720 100644 --- a/composeApp/src/commonMain/kotlin/ch/parano/myicek/ui/screens/EventDetailScreen.kt +++ b/composeApp/src/commonMain/kotlin/ch/parano/myicek/ui/screens/EventDetailScreen.kt @@ -208,10 +208,26 @@ fun EventDetailScreen( Text("${player.fname} ${player.lname}") }, supportingContent = { - val parts = mutableListOf() - if (!player.position.isNullOrBlank()) parts.add(player.position) - if (player.dob.isNotBlank()) parts.add("(née ${player.dob.take(4)})") - if (parts.isNotEmpty()) Text(parts.joinToString(" ")) + if (player.dob.isNotBlank()) { + Text("(né ${player.dob.take(4)})") + } + }, + trailingContent = { + if (!player.position.isNullOrBlank()) { + AssistChip( + onClick = {}, + label = { + Text( + player.position, + style = MaterialTheme.typography.labelMedium, + ) + }, + colors = AssistChipDefaults.assistChipColors( + containerColor = MaterialTheme.colorScheme.secondaryContainer, + labelColor = MaterialTheme.colorScheme.onSecondaryContainer, + ), + ) + } }, ) }