They post all their reasonings for every opinion on supremecourt.gov
In this case the tldr is the 8th amendment is concerned with the method or kind of punishment. And here it’s a limited fine for 1st time offenders, a court order prohibiting camping in parks, then to a max of 30 days in jail for people who violate that order.