Align chat input action buttons to bottom when large amount of text (#3455)
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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'));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user