Fix chat scrolling up when switching tabs or themes