@@ -37,7 +37,7 @@ export type ReasoningProps = ComponentProps<typeof Collapsible> & {
37
37
duration ?: number ;
38
38
} ;
39
39
40
- const AUTO_CLOSE_DELAY = 1000 ;
40
+ const AUTO_CLOSE_DELAY = 500 ;
41
41
const MS_IN_S = 1000 ;
42
42
43
43
export const Reasoning = memo (
@@ -98,7 +98,7 @@ export const Reasoning = memo(
98
98
value = { { isStreaming, isOpen, setIsOpen, duration } }
99
99
>
100
100
< Collapsible
101
- className = { cn ( 'not-prose mb-4 ' , className ) }
101
+ className = { cn ( 'not-prose' , className ) }
102
102
onOpenChange = { handleOpenChange }
103
103
open = { isOpen }
104
104
{ ...props }
@@ -119,7 +119,7 @@ export const ReasoningTrigger = memo(
119
119
return (
120
120
< CollapsibleTrigger
121
121
className = { cn (
122
- 'flex items-center gap-2 text-muted-foreground text-sm ' ,
122
+ 'flex items-center gap-1.5 text-muted-foreground text-xs hover:text-foreground transition-colors ' ,
123
123
className ,
124
124
) }
125
125
{ ...props }
@@ -130,11 +130,11 @@ export const ReasoningTrigger = memo(
130
130
{ isStreaming || duration === 0 ? (
131
131
< p > Thinking...</ p >
132
132
) : (
133
- < p > Thought for { duration } seconds </ p >
133
+ < p > Thought for { duration } s </ p >
134
134
) }
135
135
< ChevronDownIcon
136
136
className = { cn (
137
- 'size-4 text-muted-foreground transition-transform' ,
137
+ 'size-3 text-muted-foreground transition-transform' ,
138
138
isOpen ? 'rotate-180' : 'rotate-0' ,
139
139
) }
140
140
/>
@@ -155,8 +155,8 @@ export const ReasoningContent = memo(
155
155
( { className, children, ...props } : ReasoningContentProps ) => (
156
156
< CollapsibleContent
157
157
className = { cn (
158
- 'mt-4 text-sm ' ,
159
- 'data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-popover-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in' ,
158
+ 'mt-2 text-xs text-muted-foreground ' ,
159
+ 'data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 outline-none data-[state=closed]:animate-out data-[state=open]:animate-in' ,
160
160
className ,
161
161
) }
162
162
{ ...props }
0 commit comments