https://ml1710bestcheapprice.blogspot.com/2023/08/hide-block-which-does-not-fit-container.html
Hide Block Which Does Not Fit Container Height