to fix this problem,
1. make the topbar(this part) always visible, and add the css property -webkit-app-region:drag; to the titlebar
2. make it so that when windows controls overlay is enabled, use the js event ongeometrychange to help move the search bar and profile picture