fix: editor title textarea clips wrapped lines — add field-sizing + robust auto-resize

The textarea auto-resize was not reliably expanding for wrapped titles because
scrollHeight could be stale on the first read (e.g. during tab switches).
Added CSS field-sizing: content as the primary solution, plus requestAnimationFrame
and ResizeObserver fallbacks for older WebKit versions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
lucaronin
2026-04-03 23:24:03 +02:00
parent 269cb5816c
commit 8cbbe1e7a0
2 changed files with 18 additions and 2 deletions

View File

@@ -336,6 +336,7 @@
resize: none;
overflow: hidden;
font-family: inherit;
field-sizing: content;
}
.title-field__input::placeholder {