How do i strech the size of this element

I want to strech so that if when the title container is thicker the close button has the same height and also so that the close button always have the same width as height.
Was this page helpful?