Commit 71f10a7
🤖 Auto-grow chat input to 50vh with scroll for long content (#123)
Simplified chat input UX by removing manual resize dragger in favor of
auto-growing textarea based on content.
## Changes
**VimTextArea:**
- Changed max-height from 200px to 50vh
- Updated auto-resize logic to use `window.innerHeight * 0.5`
**ChatInput:**
- Removed ResizeHandle component and all drag logic
- Updated focusMessageInput and editingMessage effects to use 50vh max
## Result
Input grows naturally as you type, scrolls when content exceeds 50% of
viewport height. No manual resizing needed - much simpler UX.
_Generated with `cmux`_
---------
Co-authored-by: Ammar Bandukwala <ammar@ammar.io>1 parent 7a3f281 commit 71f10a7
2 files changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
| 325 | + | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
| 362 | + | |
362 | 363 | | |
363 | 364 | | |
364 | 365 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
0 commit comments