custom alert dialog compenent

I think there is a problem with the custom alert dialog component. I’ve added a picture below. Let me explain the problem briefly: I used the ShowSuccesDialog block to show a warning when a button is pressed, the warning appears but at the bottom of the screen. I have already added the picture of the blog below.