Below you can see the front view size comparison of Canon SL2 and Canon T7. Canon SL2 is clearly the smaller of the two cameras. Its body is 7mm narrower, 8mm shorter and 8mm thinner than Canon T7.
Canon SL2 vs Canon T7 - Front View
Canon SL2 vs Canon T7 - Top View
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.
Camera Size Comparison
Select Two Cameras for Size Comparison