79491678

Date: 2025-03-07 08:51:59
Score: 1
Natty:
Report link

2024 solution using lvh css units does the work for me.

main { 
   height: 100lvh;
}

Get the height via js.

const windowHeightWithoutToolbar = document.documentElement.querySelector("main").clientHeight();

A bit hacky but it works!

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ryhon_