The previous approach used a 600ms preview animation + syncHeight() which collapsed the textarea back to 1 line (empty scrollHeight). Now syncHeight enforces minHeight = maxHeight/3, so each setting (S/M/L) has a visibly distinct resting height even when the input is empty. S (120px): min ~40px ≈ 1-2 lines at rest M (240px): min ~80px ≈ 3 lines at rest L (480px): min ~160px ≈ 5-6 lines at rest Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
78 KiB
78 KiB