We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30483fb commit 5699640Copy full SHA for 5699640
src/hooks/useViewport.ts
@@ -3,8 +3,8 @@ import { useEffect } from 'react';
3
function useViewport() {
4
useEffect(() => {
5
const setViewport = () => {
6
- const vh = window.innerHeight * 0.00999;
7
- const vw = document.documentElement.clientWidth * 0.00999;
+ const vh = window.innerHeight * 0.01;
+ const vw = document.documentElement.clientWidth * 0.01;
8
document.documentElement.style.setProperty('--vh', `${vh}px`);
9
document.documentElement.style.setProperty('--vw', `${vw}px`);
10
};
0 commit comments