@@ -72,9 +72,9 @@ const PurePreviewMessage = ({
72
72
< div
73
73
className = { cn ( 'flex items-start gap-3' , {
74
74
'w-full' : mode === 'edit' ,
75
- 'max-w-xl ml-auto justify-end mr-10 ' :
75
+ 'max-w-xl ml-auto justify-end mr-6 ' :
76
76
message . role === 'user' && mode !== 'edit' ,
77
- 'justify-start' : message . role === 'assistant' ,
77
+ 'justify-start -ml-3 ' : message . role === 'assistant' ,
78
78
} ) }
79
79
>
80
80
{ message . role === 'assistant' && (
@@ -149,7 +149,7 @@ const PurePreviewMessage = ({
149
149
className = { cn ( 'justify-start items-start text-left' , {
150
150
'bg-primary text-primary-foreground' :
151
151
message . role === 'user' ,
152
- 'bg-transparent' : message . role === 'assistant' ,
152
+ 'bg-transparent -ml-4 ' : message . role === 'assistant' ,
153
153
} ) }
154
154
>
155
155
< Response > { sanitizeText ( part . text ) } </ Response >
@@ -315,25 +315,18 @@ export const ThinkingMessage = () => {
315
315
return (
316
316
< motion . div
317
317
data-testid = "message-assistant-loading"
318
- className = "px-4 mx-auto w-full max-w-3xl group/message min-h-96 "
318
+ className = "w-full group/message"
319
319
initial = { { y : 5 , opacity : 0 } }
320
320
animate = { { y : 0 , opacity : 1 , transition : { delay : 1 } } }
321
321
data-role = { role }
322
322
>
323
- < div
324
- className = { cx (
325
- 'flex gap-4 group-data-[role=user]/message:px-3 w-full group-data-[role=user]/message:w-fit group-data-[role=user]/message:ml-auto group-data-[role=user]/message:max-w-2xl group-data-[role=user]/message:py-2 rounded-xl' ,
326
- {
327
- 'group-data-[role=user]/message:bg-muted' : true ,
328
- } ,
329
- ) }
330
- >
331
- < div className = "flex justify-center items-center mt-1 rounded-full ring-1 size-8 shrink-0 ring-border bg-background" >
323
+ < div className = "flex gap-4 w-full items-start justify-start" >
324
+ < div className = "flex justify-center items-center rounded-full ring-1 size-8 shrink-0 ring-border bg-background mt-1" >
332
325
< SparklesIcon size = { 14 } />
333
326
</ div >
334
327
335
328
< div className = "flex flex-col gap-2 w-full" >
336
- < div className = "flex flex-col gap-4 text-muted-foreground" >
329
+ < div className = "flex flex-col gap-2 text-muted-foreground" >
337
330
Hmm...
338
331
</ div >
339
332
</ div >
0 commit comments