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

View File

@@ -892,7 +892,7 @@ export default function ChatInput({
>
<form onSubmit={onFormSubmit} className="flex flex-col">
{/* Input row with inline action buttons */}
<div className="relative flex items-center">
<div className="relative flex items-end">
<div className="relative flex-1">
<textarea
data-testid="chat-input"

View File

@@ -120,7 +120,6 @@ export const useChatEngine = ({
// 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)
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
window.dispatchEvent(new CustomEvent('session-created'));
}

View File

@@ -287,10 +287,7 @@ export function useMessageStream({
: parsedEvent.message.sendToLLM,
};
console.log('New message:', JSON.stringify(newMessage, null, 2));
// Update messages with the new message
if (
newMessage.id &&
currentMessages.length > 0 &&