Below you can see the front-view size comparison of the Pentax K-70 and Panasonic G7. The Panasonic G7 is 1 mm narrower and 7 mm shorter than the Pentax K-70 but it is also 3 mm thicker.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.