How to get button and text_input side by side even if the window size is reduced

How to get both button and text box side by side