From ea15c0423c18662707f42c9cd113c4f9ddd72bf7 Mon Sep 17 00:00:00 2001 From: Rene Luria Date: Thu, 6 Aug 2026 11:39:50 +0200 Subject: [PATCH] feat(ui): Display staff in single card with aligned columns Replace per-staff cards with a single card listing all staff. Each line shows the name on the left and role in muted color on the right, matching the players section style. --- .../myice/ui/screens/EventDetailScreen.kt | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) 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) + } + } + } } } }