fix: correct 'née' to 'né' and show position as trailing badge
- 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
This commit is contained in:
@@ -208,10 +208,26 @@ fun EventDetailScreen(
|
||||
Text("${player.fname} ${player.lname}")
|
||||
},
|
||||
supportingContent = {
|
||||
val parts = mutableListOf<String>()
|
||||
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,
|
||||
),
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user