Monorepo for Tangled

web/components: clamp Textarea's resize handle to its min height master

min-h-64 was on the wrapper div, but the native resize handle only ever resizes the textarea itself, so dragging down shrank the textarea to its own min-h-24 (96px) while the wrapper stayed at 256px — the handle detached from the bottom border and left ~160px of dead space inside the field. the floor now lives on the textarea, two pixels short of 16rem so the wrapper's border keeps the outer box at exactly the exported textareaMinHeight. rows can't do this job: it sets the resting height, not a limit, so the handle drags straight past it. measured in storybook with a real pointer drag on the handle: the textarea clamps at 254px inside a 256px wrapper, matching MarkdownEditor's preview pane, and growing upward is unaffected. Signed-off-by: eti <eti@eti.tf>


Author eti Committer dawn Date Commit 7745e7c8 Parent 81d9ad8a Change ID nxypssmu
+9 -4
1 changed file