I'm improving but still pretty new at Flexbox and HTML/CSS layouts so sorry if this is basic (seems like it would be but I can't find anything).
I would like to have a 2 column layout with the second column taking whatever space it needs for it's content (it's a sidebar of tools) and the first column taking up the rest of the space. I have this working but in my main content section I have some things that are resizable and when they resize horizontally it bumps the sidebar off the screen and puts a scroll bar below which is not what I want. I would like the content not to be able to resize horizontally any more than the available width of the column.
Here is a simplification of my code that shows the reproducible example:
<html>
<body>
<div style="display: flex">
<div style="flex: 1;">
<textarea style="resize: both;"/>
</div>
<div style="flex: content">
something
</div>
</div>
</body>
</html>
The text area just represents the resizable content.
How can I force it to just be the width of the column and not stretch when the content grows?
Here is a fiddle for it if anyone wants to play with it: https://jsfiddle.net/nuejL86k/