File tree 9 files changed +22
-14
lines changed
9 files changed +22
-14
lines changed Original file line number Diff line number Diff line change @@ -34,3 +34,6 @@ yarn-error.log*
34
34
# typescript
35
35
* .tsbuildinfo
36
36
next-env.d.ts
37
+
38
+ # cursor
39
+ .cursor
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ export function ChatPanel({
90
90
onSubmit = { handleSubmit }
91
91
className = { cn (
92
92
'max-w-3xl w-full mx-auto' ,
93
- messages . length > 0 ? 'px-2 py -4' : 'px-6'
93
+ messages . length > 0 ? 'px-2 pb -4' : 'px-6'
94
94
) }
95
95
>
96
96
< div className = "relative flex flex-col w-full gap-2 bg-muted rounded-3xl border border-input" >
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export function Chat({
63
63
}
64
64
65
65
return (
66
- < div className = "flex flex-col w-full max-w-3xl pt-14 pb-60 mx-auto stretch" >
66
+ < div className = "flex flex-col w-full max-w-3xl pt-14 pb-40 mx-auto stretch" >
67
67
< ChatMessages
68
68
messages = { messages }
69
69
data = { data }
Original file line number Diff line number Diff line change @@ -33,16 +33,17 @@ export function CollapsibleMessage({
33
33
34
34
return (
35
35
< div className = "flex gap-3" >
36
- < div className = "relative flex flex-col items-center" >
37
- < div className = { cn ( 'mt-[10px] w-5' , role === 'assistant' && 'mt-4' ) } >
38
- { showIcon &&
39
- ( role === 'user' ? (
36
+ { showIcon && (
37
+ < div className = "relative flex flex-col items-center" >
38
+ < div className = { cn ( 'mt-[10px] w-5' , role === 'assistant' && 'mt-4' ) } >
39
+ { role === 'user' ? (
40
40
< UserCircle2 size = { 20 } className = "text-muted-foreground" />
41
41
) : (
42
42
< IconLogo className = "size-5" />
43
- ) ) }
43
+ ) }
44
+ </ div >
44
45
</ div >
45
- </ div >
46
+ ) }
46
47
47
48
{ isCollapsible ? (
48
49
< div
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ export const RelatedQuestions: React.FC<RelatedQuestionsProps> = ({
74
74
header = { header }
75
75
isOpen = { isOpen }
76
76
onOpenChange = { onOpenChange }
77
+ showIcon = { false }
77
78
>
78
79
< div className = "flex flex-wrap" >
79
80
{ Array . isArray ( relatedQuestions . items ) ? (
Original file line number Diff line number Diff line change 1
1
'use client'
2
2
3
- import { Section , ToolArgsSection } from '@/components/section'
4
3
import { SearchResults } from '@/components/search-results'
4
+ import { Section , ToolArgsSection } from '@/components/section'
5
5
import { SearchResults as SearchResultsType } from '@/lib/types'
6
6
import { ToolInvocation } from 'ai'
7
- import { DefaultSkeleton } from './default-skeleton'
8
7
import { CollapsibleMessage } from './collapsible-message'
8
+ import { DefaultSkeleton } from './default-skeleton'
9
9
10
10
interface RetrieveSectionProps {
11
11
tool : ToolInvocation
@@ -32,6 +32,7 @@ export function RetrieveSection({
32
32
header = { header }
33
33
isOpen = { isOpen }
34
34
onOpenChange = { onOpenChange }
35
+ showIcon = { false }
35
36
>
36
37
{ ! isLoading && data ? (
37
38
< Section title = "Sources" >
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ export function SearchSection({
47
47
header = { header }
48
48
isOpen = { isOpen }
49
49
onOpenChange = { onOpenChange }
50
+ showIcon = { false }
50
51
>
51
52
{ searchResults &&
52
53
searchResults . images &&
Original file line number Diff line number Diff line change 1
1
'use client'
2
2
3
3
import { ToolInvocation } from 'ai'
4
+ import RetrieveSection from './retrieve-section'
4
5
import { SearchSection } from './search-section'
5
6
import { VideoSearchSection } from './video-search-section'
6
- import RetrieveSection from './retrieve-section'
7
7
8
8
interface ToolSectionProps {
9
9
tool : ToolInvocation
Original file line number Diff line number Diff line change 1
1
'use client'
2
2
3
- import { DefaultSkeleton } from './default-skeleton'
4
- import { Section , ToolArgsSection } from './section'
5
3
import type { SerperSearchResults } from '@/lib/types'
6
4
import { ToolInvocation } from 'ai'
7
- import { VideoSearchResults } from './video-search-results'
8
5
import { CollapsibleMessage } from './collapsible-message'
6
+ import { DefaultSkeleton } from './default-skeleton'
7
+ import { Section , ToolArgsSection } from './section'
8
+ import { VideoSearchResults } from './video-search-results'
9
9
10
10
interface VideoSearchSectionProps {
11
11
tool : ToolInvocation
@@ -32,6 +32,7 @@ export function VideoSearchSection({
32
32
header = { header }
33
33
isOpen = { isOpen }
34
34
onOpenChange = { onOpenChange }
35
+ showIcon = { false }
35
36
>
36
37
{ ! isLoading && searchResults ? (
37
38
< Section title = "Videos" >
You can’t perform that action at this time.
0 commit comments