mirror of
https://github.com/bitbaum/chatkit.git
synced 2026-12-04 06:07:44 +01:00
Chromium counts a textarea's placeholder in scrollHeight. A composer emptied while it was narrow (a sheet still opening, a layout settling) read its wrapped placeholder as content and grew to its 240px maximum with nothing typed, and it stayed that way because the height was keyed only on the value. On Loki's phone chat that was half the screen of blank composer after a send. - An empty box takes its natural one-line height. - The box re-measures when its width changes (width only, so the height it sets cannot loop the observer). - Browser check: empty the composer while it is 60px wide, widen it, and it is one line again (fails at 240px before this change). Claude-Session: https://claude.ai/code/session_011L2dmcydDLYAiNQwK4XcF4 Co-authored-by: Claude <noreply@anthropic.com>
1 line
544 B
Plaintext
1 line
544 B
Plaintext
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/react/hooks.ts"],"names":[],"mappings":"AAEA,OAAO,EAML,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,SAAO;;iBAUhC,MAAM;EAYhB;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM;;;;;;EA0BrE;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,QAoBvE;AAED;;;;;;;;gFAQgF;AAChF,wBAAgB,WAAW,CAAC,GAAG,EAAE,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,SAAM,QAqB/F"} |