@expofp/ui 3.44.2 → 3.44.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -88,9 +88,14 @@ const Overlay = ({ children, open, size = 'medium', particles, className, onChan
|
|
|
88
88
|
const positioningStyles = useMemo(() => {
|
|
89
89
|
if (mobile) {
|
|
90
90
|
const lift = keyboardInset > 0 ? { bottom: keyboardInset } : {};
|
|
91
|
-
const clamp = (height) => Math.min(height, effectiveSizes.full);
|
|
92
91
|
if (forceFull && open) {
|
|
93
|
-
|
|
92
|
+
// Covers the screen: `fullSizeOffset` keeps room for the search box above a
|
|
93
|
+
// regular sheet, and a forced-full one is drawn over it (#1713). Only the
|
|
94
|
+
// keyboard takes height away, never below the smallest snap point.
|
|
95
|
+
return {
|
|
96
|
+
...lift,
|
|
97
|
+
height: Math.max(getActualViewportHeight() - keyboardInset, sizes.small),
|
|
98
|
+
};
|
|
94
99
|
}
|
|
95
100
|
// A gesture freezes the sheet at its tallest point and moves it with
|
|
96
101
|
// `translate3d`, keeping the drag off the layout path. The lift stays on.
|
|
@@ -112,6 +117,7 @@ const Overlay = ({ children, open, size = 'medium', particles, className, onChan
|
|
|
112
117
|
isAnimating,
|
|
113
118
|
forceFull,
|
|
114
119
|
dragging,
|
|
120
|
+
sizes,
|
|
115
121
|
effectiveSizes,
|
|
116
122
|
keyboardInset,
|
|
117
123
|
]);
|