MCPcopy Create free account
hub / github.com/codeaashu/claude-code / update

Function update

web/hooks/useViewportHeight.ts:25–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 const vv = window.visualViewport;
24
25 const update = () => {
26 const fullHeight = window.innerHeight;
27 const visibleHeight = vv ? vv.height : fullHeight;
28 const keyboardHeight = Math.max(0, fullHeight - visibleHeight);
29 setState({
30 viewportHeight: visibleHeight,
31 keyboardHeight,
32 isKeyboardOpen: keyboardHeight > 50,
33 });
34 };
35
36 update();
37

Callers 1

useViewportHeightFunction · 0.70

Calls 1

maxMethod · 0.80

Tested by

no test coverage detected