From 453ce9562b58ca6ef537d2a39ea696a8bc477e6c Mon Sep 17 00:00:00 2001 From: CXwudi Date: Sun, 22 Dec 2024 17:37:54 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style=20loading=20indicator=20fo?= =?UTF-8?q?r=20user=20avatar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apply proper size and circular shape to match the loaded avatar image style --- .../cx/conduit/frontend/ui/screen/main/me/MePage.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/conduit-frontend/frontend-compose-ui/src/commonMain/kotlin/mikufan/cx/conduit/frontend/ui/screen/main/me/MePage.kt b/conduit-frontend/frontend-compose-ui/src/commonMain/kotlin/mikufan/cx/conduit/frontend/ui/screen/main/me/MePage.kt index 97fb835..e70ec6b 100644 --- a/conduit-frontend/frontend-compose-ui/src/commonMain/kotlin/mikufan/cx/conduit/frontend/ui/screen/main/me/MePage.kt +++ b/conduit-frontend/frontend-compose-ui/src/commonMain/kotlin/mikufan/cx/conduit/frontend/ui/screen/main/me/MePage.kt @@ -344,7 +344,12 @@ private fun ProfileImage( ) } is AsyncImagePainter.State.Loading -> { - CircularProgressIndicator() + CircularProgressIndicator( + modifier = modifier + .then(sizeResolver) + .size(120.dp) + .clip(CircleShape) + ) } is AsyncImagePainter.State.Success -> { Image(