Adapt size of repareatin group

Hi,

I am trying to develop a comment feature. The comments are in a sidebar on the right part of the screen.
The thing is that when there are too many comments the text input and the button to add the comment go under the screen.

Any idea how to fix it? I tried different layout setup but nothing is working…
Here the actual parameters: