I don't hear of any indiscriminate bombing of civilians in areas that aren't directly tied to Hamas launching missiles and otherwise waging war against Israel. Nothing they've done to this point could be described as “illegal”.
Hamas is squealing and the axis of evil is doing all they can to try to sway public opinion to make Israel stop their wholesale liquidation of Hamas.
Those who want things to stay as they've been, which led to the massacre of Israeli's on 10/7/23, insist for a halt of hostilities in their attempts to give Hamas a break so they can regroup. This is an acknowledged tactic from these players. If Israel allows things to remain the same, they are doomed.
So far, looks like Israel isn't ready to roll over and surrender to those declaring their intentions to annihilate all Israelis. That mentality cannot be allowed to continue as it's a demonstrably direct threat to the survival of Israel.
Well as one of our gys used to say in Nam, best weapon for guerilla warfare is a knife, second-best is a rifle. Airstrikes always mean a risk of civilian casualties.
Just because a family is living in hamas-tied area doesnt necessarily mean each and every member of said family is hamas sympathizer let alone a member of hamas infrastructure.