mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 16:33:27 +00:00
fix: render notify chip avatar via leadingIcon to avoid circle clip
InputChip clips its avatar slot to a circle, which cut off the following badge that BaseUserPicture draws slightly outside the picture's circle. Pass the picture through the leadingIcon slot instead, which is not clipped.
This commit is contained in:
+4
-1
@@ -100,7 +100,10 @@ private fun NotifyUserChip(
|
||||
accountViewModel = accountViewModel,
|
||||
)
|
||||
},
|
||||
avatar = {
|
||||
// Use the leadingIcon slot instead of avatar: InputChip clips the avatar slot
|
||||
// to a circle, which would cut off the following badge that BaseUserPicture
|
||||
// intentionally draws slightly outside the picture's circle.
|
||||
leadingIcon = {
|
||||
BaseUserPicture(user, Size24dp, accountViewModel)
|
||||
},
|
||||
trailingIcon = {
|
||||
|
||||
Reference in New Issue
Block a user