Function
viewportPadding
(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. |
| 218 | const VIEWPORT_PADDING = isIOS() && isSafari() ? 'calc(100lvh - 100svh + 58px)' : '0px'; |
| 219 | const 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. |
Tested by
no test coverage detected