I am currently working on styling a React app with MUI and I need help figuring out how to make a div's height adjust to its content. Specifically, I have a Card component that contains a Button. Upon clicking the Button, the content below the Card gets cut off.
Is there a way to make the Card expand along with the content when the button is clicked? I suspect the hard coding of the Card height might be causing this issue...