how to keep the size of a button or container from being compressed

I can’t control the size of a button or container to always be fixed, as long as the window or parent container is compressed, the size of these containers will be compressed instead of intercepted, which will cause the UI to be confusing and uncomfortable when stretching the window
https://private-user-images.githubusercontent.com/151000903/530523710-91abdf08-c07f-4144-8e42-3179b6209cb1.mp4?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjY5ODA3MTgsIm5iZiI6MTc2Njk4MDQxOCwicGF0aCI6Ii8xNTEwMDA5MDMvNTMwNTIzNzEwLTkxYWJkZjA4LWMwN2YtNDE0NC04ZTQyLTMxNzliNjIwOWNiMS5tcDQ_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUxMjI5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MTIyOVQwMzUzMzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mZGFjNmFkOWQ5MDI2MGJlZmU1MjU1N2VkMGYzMGNkOTc4MTUxMTM1ODQ1YTBjNmU3MjcyY2IyNTVkMDAxYTY5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.kW91St33lLbytG8UdTKXOMu6VcrBE2fhLPGgksMRzKc