@@ -12,7 +12,7 @@ export type ConversationProps = ComponentProps<typeof StickToBottom>;
1212export const Conversation = ( { className, ...props } : ConversationProps ) => (
1313 < StickToBottom
1414 className = { cn (
15- 'relative flex-1 overflow-hidden bg-gradient -to-b from-background via-background to-muted/60' ,
15+ 'relative flex-1 overflow-hidden bg-linear -to-b from-background via-background to-muted/60' ,
1616 className ,
1717 ) }
1818 initial = "smooth"
@@ -32,24 +32,12 @@ export const ConversationContent = ({ className, ...props }: ConversationContent
3232 ) }
3333 { ...props }
3434 />
35- < StickToBottom . Content
36- className = { cn (
37- 'flex flex-col gap-4 px-3 py-4 md:px-4 md:py-6 max-w-2xl mx-auto w-full' ,
38- className ,
39- ) }
40- { ...props }
41- / >
4235) ;
4336
4437export type ConversationHeaderProps = ComponentProps < 'div' > ;
4538
4639export const ConversationHeader = ( { className, ...props } : ConversationHeaderProps ) => (
4740 < div
48- className = { cn (
49- 'flex items-center justify-between gap-2 border-b border-border/60 bg-background/95 px-3 py-2' ,
50- 'text-[11px] uppercase tracking-[0.18em] text-muted-foreground' ,
51- className ,
52- ) }
5341 className = { cn (
5442 'flex items-center justify-between gap-2 border-b border-border/60 bg-background/95 px-3 py-2' ,
5543 'text-[11px] uppercase tracking-[0.18em] text-muted-foreground' ,
@@ -69,13 +57,6 @@ export const ConversationTitle = ({ className, ...props }: ConversationTitleProp
6957 ) }
7058 { ...props }
7159 />
72- < div
73- className = { cn (
74- 'font-semibold text-xs tracking-[0.18em] uppercase text-foreground/80' ,
75- className ,
76- ) }
77- { ...props }
78- / >
7960) ;
8061
8162export type ConversationEmptyStateProps = ComponentProps < 'div' > & {
@@ -94,7 +75,6 @@ export const ConversationEmptyState = ({
9475} : ConversationEmptyStateProps ) => (
9576 < div
9677 className = { cn (
97- 'flex size-full flex-col items-center justify-center gap-2 px-4 py-6 text-center' ,
9878 'flex size-full flex-col items-center justify-center gap-2 px-4 py-6 text-center' ,
9979 className ,
10080 ) }
@@ -110,12 +90,6 @@ export const ConversationEmptyState = ({
11090 { description && (
11191 < p className = "mx-auto max-w-sm text-muted-foreground text-xs/6" > { description } </ p >
11292 ) }
113- < h3 className = "font-medium text-xs uppercase tracking-[0.18em] text-foreground/80" >
114- { title }
115- </ h3 >
116- { description && (
117- < p className = "mx-auto max-w-sm text-muted-foreground text-xs/6" > { description } </ p >
118- ) }
11993 </ div >
12094 </ >
12195 ) }
@@ -137,11 +111,6 @@ export const ConversationScrollButton = ({
137111 return (
138112 ! isAtBottom && (
139113 < Button
140- className = { cn (
141- 'absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full border-border/70 bg-background/95' ,
142- 'h-7 w-7 shadow-[0_10px_30px_rgba(15,23,42,0.22)] backdrop-blur-sm' ,
143- className ,
144- ) }
145114 className = { cn (
146115 'absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full border-border/70 bg-background/95' ,
147116 'h-7 w-7 shadow-[0_10px_30px_rgba(15,23,42,0.22)] backdrop-blur-sm' ,
0 commit comments