1
Fork 0
mirror of https://github.com/Steffo99/twom.git synced 2024-11-25 09:34:25 +00:00

Wrap MemberListItem in a Box to have the DropdownMenu display correctly

This commit is contained in:
Steffo 2024-01-20 15:09:33 +01:00
parent 4a084519ce
commit fb45b3ea06
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -84,6 +84,9 @@ fun MemberListItem(
val alpha = if (rsvp.answer == RSVPAnswer.PENDING) 0.4f else 1.0f val alpha = if (rsvp.answer == RSVPAnswer.PENDING) 0.4f else 1.0f
val color = rsvp.answer.staticColorRole.color().copy(alpha) val color = rsvp.answer.staticColorRole.color().copy(alpha)
// A parent layout is needed for the Dropdown to display in the correct position
Box {
ListItem( ListItem(
modifier = modifier modifier = modifier
.combinedClickable( .combinedClickable(
@ -159,3 +162,4 @@ fun MemberListItem(
} }
} }
} }
}