Fixes square loading image on Follow packs

This commit is contained in:
Vitor Pamplona
2025-07-23 08:50:14 -04:00
parent 064a732ec8
commit c221506e78

View File

@@ -76,17 +76,17 @@ fun MyAsyncImage(
} }
} else { } else {
WaitAndDisplay { WaitAndDisplay {
Box(contentAlignment = Alignment.Center) {
if (onLoadingBackground != null) { if (onLoadingBackground != null) {
Box(loadedImageModifier, contentAlignment = Alignment.Center) {
onLoadingBackground() onLoadingBackground()
LoadingAnimation(Size40dp, Size6dp) LoadingAnimation(Size40dp, Size6dp)
}
} else { } else {
DisplayUrlWithLoadingSymbol(imageUrl) DisplayUrlWithLoadingSymbol(imageUrl)
} }
} }
} }
} }
}
is AsyncImagePainter.State.Error -> { is AsyncImagePainter.State.Error -> {
if (onError != null) { if (onError != null) {
if (ratio != null) { if (ratio != null) {