fix(max): constrain chat textarea height#30
Conversation
…ed offscreen on long messages Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
🎨 Visual QA —
|
| Empty | Long text (desktop) | Long text (narrow) | |
|---|---|---|---|
| Send button accessible | ✅ both | ✅ both | ✅ both |
| Textarea height capped | — | ✅ after only | ✅ after only |
| Scrollbar appears | — | ✅ after only | ✅ after only |
| Layout breaks | — | ❌ none | ❌ none |
Result: ✅ Looks correct. The constraint applies cleanly, the send button remains reachable, and empty state is unaffected. No layout regressions observed at either viewport.
Screenshots captured against live local dev stack on master + PR CSS applied via Vite HMR.



Problem
Long messages in the PostHog AI agent chat cause the input box to grow beyond 100% of the viewport height, making the send button inaccessible.
Changes
QuestionInput__textareaclass to the AI chat input componentmin(40vh, 20rem)with vertical overflow scrollingHow did you test this code?
Ran automated tests in
QuestionInput.test.tsx—all tests pass, including new test that verifies the textarea renders with constrained scrolling styles.Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.