Skip to content

Commit 93c01b3

Browse files
committed
Small improvements on chat ui
1 parent a25ffbb commit 93c01b3

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

apps/array/src/renderer/features/sessions/components/ChatBubble.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ export function ChatBubble({ variant, children }: ChatBubbleProps) {
1111

1212
return (
1313
<Box
14-
className={`mr-auto max-w-[95%] py-1 xl:max-w-[60%] [&>*:last-child]:mb-0 ${isUser ? "mt-4 rounded-xl rounded-bl-sm bg-gray-2 px-3 py-2" : ""}
15-
`}
14+
className={`max-w-[95%] xl:max-w-[60%] [&>*:last-child]:mb-0 ${
15+
isUser
16+
? "ml-auto rounded-xl rounded-br-sm bg-accent-4 px-3 py-2"
17+
: "mr-auto"
18+
}`}
1619
>
1720
{children}
1821
</Box>

apps/array/src/renderer/features/sessions/components/SessionView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ export function SessionView({
475475
const shouldCollapse = turn.isComplete && collapsibleMessages.length > 0;
476476

477477
return (
478-
<Box className="flex flex-col gap-2">
478+
<Box className="flex flex-col gap-4">
479479
<UserMessage content={turn.userMessage.content} />
480480
{shouldCollapse ? (
481481
<>
@@ -588,7 +588,7 @@ export function SessionView({
588588
renderItem={renderTurn}
589589
autoScrollToBottom
590590
className="flex-1 p-4"
591-
gap={8}
591+
gap={24}
592592
footer={
593593
<>
594594
{isPromptPending && (

0 commit comments

Comments
 (0)