From c221506e7836d5e918b6625c7f6bec4852bf309c Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Wed, 23 Jul 2025 08:50:14 -0400 Subject: [PATCH] Fixes square loading image on Follow packs --- .../vitorpamplona/amethyst/ui/components/MyAsyncImage.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/MyAsyncImage.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/MyAsyncImage.kt index 9effe29c4..4e847ec37 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/MyAsyncImage.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/MyAsyncImage.kt @@ -76,13 +76,13 @@ fun MyAsyncImage( } } else { WaitAndDisplay { - Box(contentAlignment = Alignment.Center) { - if (onLoadingBackground != null) { + if (onLoadingBackground != null) { + Box(loadedImageModifier, contentAlignment = Alignment.Center) { onLoadingBackground() LoadingAnimation(Size40dp, Size6dp) - } else { - DisplayUrlWithLoadingSymbol(imageUrl) } + } else { + DisplayUrlWithLoadingSymbol(imageUrl) } } }