sudoer-777 I'm not sure why it did that other than I asked a question about HTML. This was on llama3.1. AI-generated HTML shouldn't render. (Not to mention the markdown formatting is super messed up)
leftium Side note: https://zz.leftium.com has an auto-expanding textarea. I tried a few methods, and this one worked the best. (For my use-case, I didn't want text to wrap; I can't recall if this works if text wraps. I think it should?) Source code: main JS function some CSS is needed on the textarea
sudoer-777 leftium I'm on Firefox and it just stays one line and adds a horizontal scroll bar, I got the textarea on my program to wrap but it doesn't expand when it doesn't use too many lines. Edit: nvmd I didn't hit enter I'm dumb, I'm surprised something like this requires JS tho
leftium sudoer-777 I think the only non-JS solution is to make a contenteditable div that looks like a textarea. There is a solution that is almost JS-free: https://css-tricks.com/the-cleanest-trick-for-autogrowing-textareas/ It requires setting the onInput attribute to replicate the value of the textarea to an element that can auto-size.