break-inside: avoid doesn’t help. Neither does changing ul or li margins and/or padding.
break-inside: avoid
ul
li