Apply context window everywhere. Ensure styling is good on all screen sizes. Cleanup inconsistencies with upstream branch.

This commit is contained in:
Willie Zutz 2025-04-20 13:10:59 -06:00
parent 0bb860b154
commit 67ee9eff53
11 changed files with 30 additions and 54 deletions

View file

@ -18,10 +18,7 @@ const MessageInput = ({
optimizationMode,
setOptimizationMode,
}: {
sendMessage: (
message: string,
messageId?: string
) => void;
sendMessage: (message: string) => void;
loading: boolean;
fileIds: string[];
setFileIds: (fileIds: string[]) => void;
@ -68,13 +65,13 @@ const MessageInput = ({
onSubmit={(e) => {
if (loading) return;
e.preventDefault();
sendMessage(message, undefined);
sendMessage(message);
setMessage('');
}}
onKeyDown={(e) => {
if (e.key === 'Enter' && !e.shiftKey && !loading) {
e.preventDefault();
sendMessage(message, undefined);
sendMessage(message);
setMessage('');
}
}}