Nowadays, smart phone display is getting larger and larger. I suggest to move the "scan QR code" button and "connect with code" buttons to the bottom of the display, so users can operate with a single hand.
My smartphone is 6.67" and most of the time I need to hold it with my right hand and click button with my right index finger.