
I created this form field. I want the field length to be adjustable, while keeping the button the same size and at the end. However, when I resize the field, one of two things will happen:

Button stays the same size, but doesn’t move to be at the end of the field.

Button moves, but changes size.
How should the component be set so that the button has a fixed size but dynamic position?