@@ -72,10 +72,6 @@ export function ChatPage() {
7272 dependencies : [ chat , messages ] ,
7373 } ) ;
7474
75- // Animation state for chat input
76- const [ isAnimating , setIsAnimating ] = useState ( false ) ;
77- const prevMessagesCountRef = useRef ( 0 ) ;
78-
7975 // Set up navigation actions (only once on mount)
8076 useEffect ( ( ) => {
8177 setRightActions (
@@ -161,22 +157,6 @@ export function ChatPage() {
161157 prevMessagesLengthRef . current = messages . length ;
162158 } , [ messages . length , enableAutoScroll ] ) ;
163159
164- // Handle animation when first message is added
165- useEffect ( ( ) => {
166- if ( prevMessagesCountRef . current === 0 && messages . length > 0 ) {
167- setIsAnimating ( true ) ;
168- // Reset animation state after animation completes
169- const animationTimer = setTimeout ( ( ) => {
170- setIsAnimating ( false ) ;
171- } , 600 ) ; // Match the CSS transition duration
172-
173- return ( ) => {
174- clearTimeout ( animationTimer ) ;
175- } ;
176- }
177- prevMessagesCountRef . current = messages . length ;
178- } , [ messages . length ] ) ;
179-
180160 return (
181161 < div className = "h-full w-full flex overflow-hidden relative" >
182162 { messages . length === 0 && < BackgroundImage /> }
@@ -242,7 +222,7 @@ export function ChatPage() {
242222 } ) ( ) }
243223
244224 { messages . map ( ( message , idx ) => (
245- < ChatMessage key = { idx } message = { message } />
225+ < ChatMessage key = { idx } message = { message } isLast = { idx === messages . length - 1 } />
246226 ) ) }
247227
248228 { /* sentinel for scrollIntoView */ }
@@ -254,14 +234,10 @@ export function ChatPage() {
254234
255235 { /* Chat Input - hidden during voice mode */ }
256236 { ! isVoiceMode && (
257- < footer className = { `absolute left-0 right-0 bg-transparent md:pb-4 pb-0 px-3 pointer-events-none transition-all duration-600 ease-out z-20 ${
258- messages . length === 0 ? 'bottom-0 md:bottom-1/3 md:transform md:translate-y-1/2' : 'bottom-0'
259- } ${ isAnimating ? 'transition-all duration-600 ease-out' : '' } `} >
260- < div className = { `relative pointer-events-auto ${
261- layoutMode === 'wide' ? 'max-w-full md:max-w-[80vw] mx-auto' : 'max-content-width'
262- } ${ messages . length === 0 ? 'max-w-4xl' : '' } ${
263- showRepositoryDrawer ? 'md:mr-80 md:pr-4' : ''
264- } `} >
237+ < footer className = { `fixed bottom-0 left-0 right-0 md:px-3 md:pb-4 pointer-events-none z-20 transition-all duration-600 ease-out ${
238+ messages . length === 0 ? 'md:bottom-1/3 md:transform md:translate-y-1/2' : ''
239+ } `} >
240+ < div className = "relative pointer-events-auto md:max-w-4xl mx-auto" >
265241 < ChatInput />
266242 </ div >
267243 </ footer >
0 commit comments