From 45ce6f2815ef61790e39f283f2d9d8c0dd96e093 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 13 Jun 2026 14:38:40 +0000 Subject: [PATCH] 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. --- .../amethyst/ui/note/creators/notify/Notifying.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/creators/notify/Notifying.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/creators/notify/Notifying.kt index 1c66e4115b..e720ef6f27 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/creators/notify/Notifying.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/creators/notify/Notifying.kt @@ -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 = {