Hello, I need help with a CSS issue. I have a layout with two columns: column A and column B. Column B has a fixed width of 100px, while column A should fill the remaining width. Inside column A, there is a list of child components that are added horizontally.
The problem arises when a new child component is added - it causes column A's width to extend beyond its limits, pushing column B down.
How can I ensure that when a child component exceeds the width of column A, it is automatically moved to the next line within column A?
- Scenario with a small number of child elements https://i.sstatic.net/MF5eA.png
- Current situation with an increasing number of child elements https://i.sstatic.net/LgmDa.png
- Desired outcome with an increasing number of child elements https://i.sstatic.net/kQrBn.png