fix: correct touch area offset on Profile Edit Screen

- Removed redundant `clip` and `size` modifiers from `CollectionCardRemoteImage` in `ProfileIdentityCard` and `AvatarChoiceItem`.
- Used `Modifier.fillMaxSize()` to inherit parent shape constraints, fixing the touch offset issue on iOS devices without affecting Android.
This commit is contained in:
Luqman Fadlli 2026-05-26 14:06:25 +07:00 committed by GitHub
parent 2eaab2f545
commit fd1cbf45ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -412,7 +412,7 @@ private fun ProfileIdentityCard(
CollectionCardRemoteImage(
imageUrl = customAvatarUrl,
contentDescription = name,
modifier = Modifier.size(88.dp).clip(CircleShape),
modifier = Modifier.fillMaxSize(),
contentScale = ContentScale.Crop,
animateIfPossible = true,
)
@ -420,7 +420,7 @@ private fun ProfileIdentityCard(
AsyncImage(
model = avatarStorageUrl(selectedAvatar.storagePath),
contentDescription = selectedAvatar.displayName,
modifier = Modifier.fillMaxSize(),
modifier = Modifier.size(88.dp).clip(CircleShape),
contentScale = ContentScale.Crop,
)
} else if (name.isNotBlank()) {