(feat:ui) message input, search icon

This commit is contained in:
ManishMadan2882 committed 2026-06-25 19:27:44 +05:30
1 parent 1acb836332
commit f6f741ba23
3 files changed
+18 -13

No files matched your search

+7 -8
View File
@@ -908,14 +908,13 @@ export default function MessageInput({
});
const handleInput = useCallback(() => {
if (inputRef.current) {
if (window.innerWidth < 350) inputRef.current.style.height = 'auto';
else inputRef.current.style.height = '64px';
inputRef.current.style.height = `${Math.min(
inputRef.current.scrollHeight,
96,
)}px`;
}
if (!inputRef.current) return;
if (window.innerWidth < 350) inputRef.current.style.height = 'auto';
else inputRef.current.style.height = '64px';
inputRef.current.style.height = `${Math.min(
inputRef.current.scrollHeight,
Math.round(window.innerHeight * 0.4),
)}px`;
}, []);
const buildVoiceDraftValue = (baseText: string, transcript: string) => {