FB-14497: Fix left-to-right twitch when modal closes