diff --git a/web/src/App.tsx b/web/src/App.tsx index 79fa5f8..6fc390a 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -272,6 +272,14 @@ export default function App() { const searchRunCounterRef = useRef(0); const [contextMenu, setContextMenu] = useState(null); + useEffect(() => { + if (typeof document === "undefined") return; + const textarea = document.getElementById("composer-input") as HTMLTextAreaElement | null; + if (!textarea) return; + textarea.style.height = "0px"; + textarea.style.height = `${textarea.scrollHeight}px`; + }, [composer]); + const sidebarItems = useMemo(() => buildSidebarItems(chats, searches), [chats, searches]); const resetWorkspaceState = () => { @@ -916,9 +924,15 @@ export default function App() {