Check if the width is not set, if it isn’t bind it to “fit-content”, check also parent elements, if they’re not set on something fixed. I know this can be done, because I did it with multiselect I think.
Set a max height (i.e. like the max you want your chatbox or input to expand to) then add field-sizing
and resize to the Custom CSS
i found that adding “resize: none;” to the CSS give the clean expandable text element without the manual resizing click-drag element at the bottom corner