From cbc22cdbdb2b6c4a642248f7f6cec16b341686dd Mon Sep 17 00:00:00 2001 From: KevIsDev Date: Wed, 16 Apr 2025 13:17:55 +0100 Subject: [PATCH] style(chat): adjust spacing and margins in chat components - Reduce gap between elements in BaseChat component from `gap-4` to `gap-2` - Remove bottom margin from AssistantMessage component for cleaner layout - Add expo.svg icon to the icons directory for future use --- app/components/chat/AssistantMessage.tsx | 2 +- app/components/chat/BaseChat.tsx | 2 +- icons/expo.svg | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 icons/expo.svg diff --git a/app/components/chat/AssistantMessage.tsx b/app/components/chat/AssistantMessage.tsx index 370d5bf0..aa831a4e 100644 --- a/app/components/chat/AssistantMessage.tsx +++ b/app/components/chat/AssistantMessage.tsx @@ -104,7 +104,7 @@ export const AssistantMessage = memo(({ content, annotations, messageId, onRewin
)} -
+
{usage && (
Tokens: {usage.totalTokens} (prompt: {usage.promptTokens}, completion: {usage.completionTokens}) diff --git a/app/components/chat/BaseChat.tsx b/app/components/chat/BaseChat.tsx index a33058c2..13546f66 100644 --- a/app/components/chat/BaseChat.tsx +++ b/app/components/chat/BaseChat.tsx @@ -375,7 +375,7 @@ export const BaseChat = React.forwardRef( /> )}
diff --git a/icons/expo.svg b/icons/expo.svg new file mode 100644 index 00000000..d87ca84b --- /dev/null +++ b/icons/expo.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file