vh
unit is not accurate when page is rendered by Safari, when you use 100vh
, the 100vh
actually includes the toolbar.
This patch will fix this issue automatically when user is using Safari to browse your site.
Step 1: Install this package.
npm install @any-design/safari-vh-patch
Step 2: Import it to your project.
import '@any-design/safari-vh-patch';
MIT