To work around it you have to double click the top bar and it goes back to normal. I'm using the Cosmic Atomic Prerelease and the Firefox Flatpak.