Here is a nice little animation of Magna's latest, 4th generation eAxle, which was launched at the 2024 CES event. As you can see, this eAxle can be mounted either vertically (seen on the front axle) or vertically (seen on the rear axle), with this flexibility probably helped by the location of the inverter, which is mounted on the side of the transmission/reducer.
For a view inside this eAxle, see the Magna press conference, here: • Video