diff --git a/composeApp/src/commonMain/kotlin/ch/parano/myice/ui/screens/EventDetailScreen.kt b/composeApp/src/commonMain/kotlin/ch/parano/myice/ui/screens/EventDetailScreen.kt index 1dddb49..a6b928f 100644 --- a/composeApp/src/commonMain/kotlin/ch/parano/myice/ui/screens/EventDetailScreen.kt +++ b/composeApp/src/commonMain/kotlin/ch/parano/myice/ui/screens/EventDetailScreen.kt @@ -189,12 +189,22 @@ fun EventDetailScreen( style = MaterialTheme.typography.titleLarge, ) } - items(detail.convocation.staff) { staff -> + item { Card(modifier = Modifier.fillMaxWidth()) { - Text( - text = "${staff.role}: ${staff.fname} ${staff.lname}", - modifier = Modifier.padding(16.dp), - ) + Column(modifier = Modifier.padding(16.dp)) { + detail.convocation.staff.forEach { staff -> + val muted = MaterialTheme.colorScheme.onSurfaceVariant + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(6.dp), + modifier = Modifier.fillMaxWidth(), + ) { + Text("${staff.fname} ${staff.lname}") + Spacer(Modifier.weight(1f)) + Text(staff.role, color = muted) + } + } + } } } }