Updated special case for small screen heights on the class details page.