From 3ca30396d163bb823843057e0ba62aea5a66f24c Mon Sep 17 00:00:00 2001 From: kateliu20 Date: Fri, 11 Oct 2024 12:26:05 -0400 Subject: [PATCH] Adjust remember on animatedDots --- .../kotlin/foundry/intellij/compose/aibot/LoadingAnimation.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/intellij/compose/src/jvmMain/kotlin/foundry/intellij/compose/aibot/LoadingAnimation.kt b/platforms/intellij/compose/src/jvmMain/kotlin/foundry/intellij/compose/aibot/LoadingAnimation.kt index 5fa1cabac..00043507a 100644 --- a/platforms/intellij/compose/src/jvmMain/kotlin/foundry/intellij/compose/aibot/LoadingAnimation.kt +++ b/platforms/intellij/compose/src/jvmMain/kotlin/foundry/intellij/compose/aibot/LoadingAnimation.kt @@ -48,7 +48,7 @@ fun LoadingAnimation( spacing: Dp = 7.dp, movementDistance: Dp = 10.dp, ) { - val animatedDots = List(3) { remember { Animatable(0f) } } + val animatedDots = remember { List(4) { Animatable(0f) } } animatedDots.forEachIndexed { index, dot -> LaunchedEffect(dot) {