From 83a3c18336ee32e61b703125990be751440f7cb7 Mon Sep 17 00:00:00 2001 From: Taewan Park Date: Sun, 16 Jun 2024 23:06:47 +0900 Subject: [PATCH] Fix padding when text is loading --- .../chungjungsoo/gptmobile/presentation/ui/chat/ChatBubble.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/dev/chungjungsoo/gptmobile/presentation/ui/chat/ChatBubble.kt b/app/src/main/kotlin/dev/chungjungsoo/gptmobile/presentation/ui/chat/ChatBubble.kt index 5736062..92b0977 100644 --- a/app/src/main/kotlin/dev/chungjungsoo/gptmobile/presentation/ui/chat/ChatBubble.kt +++ b/app/src/main/kotlin/dev/chungjungsoo/gptmobile/presentation/ui/chat/ChatBubble.kt @@ -89,7 +89,7 @@ fun OpponentChatBubble( shape = RoundedCornerShape(32.dp), colors = cardColor ) { - RichText(modifier = Modifier.padding(top = 24.dp, start = 24.dp, end = 24.dp)) { + RichText(modifier = Modifier.padding(24.dp)) { BasicMarkdown(astNode = astNode) } if (!isLoading) { @@ -136,7 +136,7 @@ fun OpponentChatBubble( private fun BrandText(apiType: ApiType) { Box( modifier = Modifier - .padding(horizontal = 20.dp, vertical = 16.dp) + .padding(start = 24.dp, end = 24.dp, bottom = 16.dp) .fillMaxWidth() ) { Text(