Autolayout component with heading and paragraph

Hi,

I have a component with a heading and a paragraph. I need the autolayout of the component to work regardless of the heading being a longer sentence that spans two lines or a sentence that’s short enough to be just one line. What happens rn is that it looks great with two lines, but an instance of the component with only one line creates a too big vertical gap between the heading and the paragraph. I know there’s a super simple solution, but just can’t seem to wrap my head around it.

Thanks in advance!

Oops. Solution was ofc to make the component’s heading in one line in the original component so that the instances of it can then have multiple lines and not the other way around!