Commit eb57601
authored
fix(chat): resolve composer cursor dead-space and add multi-line scroll (#670)
* fix(chat): resolve composer cursor dead-space and add multi-line scroll
The chatbox input had a clickable dead zone: minHeight was applied to
the outer wrapper (52px) while the ProseMirror editable element inside
was content-height, so clicks in the lower area hit the wrapper instead
of the editor — no caret appeared until the cursor moved into the top
content region. The inner scroll div used h-full which doesn't resolve
against a min/maxHeight-only parent, so scrolling never engaged.
- Move min-height from the outer wrapper to the ProseMirror element via
a --composer-min-h CSS variable (index.css), making the full area
editable and clickable.
- ChatInputBar: start at 1 line (26px), cap at 3 lines (78px), then scroll.
- Add overscroll-contain to the scroll area to prevent scroll chaining.
- Remove redundant outer maxHeight (inner div already constrains).
- Merge adjacent @layer components blocks in index.css.
* style: split inline style prop to satisfy Biome 100-char width
* chore: trigger CI re-run
* chore: retrigger CI1 parent 8eea076 commit eb57601
3 files changed
Lines changed: 32 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
656 | | - | |
657 | | - | |
| 656 | + | |
| 657 | + | |
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
| |||
Lines changed: 19 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
67 | 68 | | |
| 69 | + | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| |||
201 | 204 | | |
202 | 205 | | |
203 | 206 | | |
204 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
205 | 211 | | |
206 | 212 | | |
207 | 213 | | |
| |||
456 | 462 | | |
457 | 463 | | |
458 | 464 | | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
464 | 475 | | |
465 | 476 | | |
466 | 477 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
476 | | - | |
| 476 | + | |
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
481 | | - | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
482 | 488 | | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
483 | 492 | | |
484 | 493 | | |
485 | 494 | | |
| |||
0 commit comments