MCPcopy Create free account
hub / github.com/adobe/react-spectrum / viewportPadding

Function viewportPadding

packages/react-aria-components/src/Sheet.tsx:219–220  ·  view source on GitHub ↗
(after: boolean, axis: Axis)

Source from the content-addressed store, hash-verified

217// More content than 100lvh is actually visible on iOS, even when the toolbar is collapsed.
218const VIEWPORT_PADDING = isIOS() && isSafari() ? 'calc(100lvh - 100svh + 58px)' : '0px';
219const viewportPadding = (after: boolean, axis: Axis) =>
220 after && axis === 'y' ? VIEWPORT_PADDING : '0px';
221
222/**
223 * A SheetOverlay is a container for a SheetBackdrop and a Sheet.

Callers 1

Sheet.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected