Align chat input action buttons to bottom when large amount of text (#3455)

This commit is contained in:
Zane
2025-07-16 12:53:16 -07:00
committed by GitHub
parent b6c8e7a25a
commit 3d28adf075
3 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -892,7 +892,7 @@ export default function ChatInput({
> >
<form onSubmit={onFormSubmit} className="flex flex-col"> <form onSubmit={onFormSubmit} className="flex flex-col">
{/* Input row with inline action buttons */} {/* Input row with inline action buttons */}
<div className="relative flex items-center"> <div className="relative flex items-end">
<div className="relative flex-1"> <div className="relative flex-1">
<textarea <textarea
data-testid="chat-input" data-testid="chat-input"
-1
View File
@@ -120,7 +120,6 @@ export const useChatEngine = ({
// If this is the first message in a new session, trigger a refresh immediately // If this is the first message in a new session, trigger a refresh immediately
// Only trigger if we're starting a completely new session (no existing messages) // Only trigger if we're starting a completely new session (no existing messages)
if (messages.length === 0 && chat.messages.length === 0) { if (messages.length === 0 && chat.messages.length === 0) {
console.log('ChatEngine: New session detected, emitting session-created event');
// Emit event to indicate a new session is being created // Emit event to indicate a new session is being created
window.dispatchEvent(new CustomEvent('session-created')); window.dispatchEvent(new CustomEvent('session-created'));
} }
-3
View File
@@ -287,10 +287,7 @@ export function useMessageStream({
: parsedEvent.message.sendToLLM, : parsedEvent.message.sendToLLM,
}; };
console.log('New message:', JSON.stringify(newMessage, null, 2));
// Update messages with the new message // Update messages with the new message
if ( if (
newMessage.id && newMessage.id &&
currentMessages.length > 0 && currentMessages.length > 0 &&