mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-14 12:16:20 +00:00
(feat:ui) message input, search icon
This commit is contained in:
1 parent
1acb836332
commit
f6f741ba23
3 files changed
+18
-13
No files matched your search
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user