fix(app): composer textarea shrinks back down on web

Measuring scrollHeight on the live textarea with an explicit height
set can only grow — it can never report a shorter content height.
The old `height: auto` toggle flickered across browsers.

Use a hidden off-DOM textarea that mirrors the composer's text-metric
styles and width, and read its scrollHeight on value/resize changes.
Gated by Metro file extension (.web / .native) so it's trivial to
rip out later.
This commit is contained in:
Mohamed Boudra
2026-04-19 14:26:50 +07:00
parent fbc2371b95
commit 2238171955
4 changed files with 131 additions and 66 deletions
@@ -0,0 +1 @@
export * from "./composer-height-mirror.native";