Switching dark mode UI looks weird in action on specific screens

If we are on specific pages such as single block or witnesses page, clicking on the dark/light mode switch causes the circle to go out of bounds.

This behaviour is not noticed in the main screen.

See below video for the incorrect behaviour