Yesterday I posted a question for product grid size modification and I updated the code. But I find it also impacted my picture in home page, it was square originally but now is rectangular after updating the code.
Can someone help me fix the issue? I want all pictures square
I attach the original code below I updated for the product grid size yesterday
and also attach the home page product picture below.