Did my ex leave for someone else because I gained weight?

It’s been two months since we broke up, but I’m still eating myself up inside. I’ve let myself go a bit lately and gained about ten kilos. I checked on social media, and his new girlfriend is literally like a stick. Am I overreacting, or do guys really just care about looks? Honestly, I’ve started to feel really ugly these days.