MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / setHeight

Function setHeight

app/src/components/nav/AppShell.tsx:198–202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196
197 useEffect(() => {
198 const setHeight = () => {
199 const vh = window.innerHeight * 0.01;
200 document.documentElement.style.setProperty("--vh", `${vh}px`);
201 setVh(`calc(var(--vh, 1vh) * 100)`);
202 };
203 setHeight(); // Set the height at the start
204
205 window.addEventListener("resize", setHeight);

Callers 1

AppShellFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected