1
Fork 0
mirror of https://github.com/Steffo99/twom.git synced 2024-11-21 23:54:26 +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 color = rsvp.answer.staticColorRole.color().copy(alpha)
// A parent layout is needed for the Dropdown to display in the correct position
Box {
ListItem(
modifier = modifier
.combinedClickable(
@ -158,4 +161,5 @@ fun MemberListItem(
)
}
}
}
}