@manhphi1309/dialog 0.3.8 → 0.3.10
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.
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -390,7 +390,7 @@ function ResponsiveDialogContent({ className, children, showCloseButton = true,
|
|
|
390
390
|
const isMobile = (0, _manhphi1309_hooks.useIsMobile)();
|
|
391
391
|
const { snap } = react.useContext(ResponsiveDialogContext);
|
|
392
392
|
if (isMobile) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_manhphi1309_drawer.DrawerContent, {
|
|
393
|
-
className: (0, _manhphi1309_utils.cn)(snap && "h-[
|
|
393
|
+
className: (0, _manhphi1309_utils.cn)(snap && "h-[calc(100%-1.5rem-env(safe-area-inset-top))]", className),
|
|
394
394
|
...props,
|
|
395
395
|
children
|
|
396
396
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -366,7 +366,7 @@ function ResponsiveDialogContent({ className, children, showCloseButton = true,
|
|
|
366
366
|
const isMobile = useIsMobile();
|
|
367
367
|
const { snap } = React.useContext(ResponsiveDialogContext);
|
|
368
368
|
if (isMobile) return /* @__PURE__ */ jsx(DrawerContent, {
|
|
369
|
-
className: cn(snap && "h-[
|
|
369
|
+
className: cn(snap && "h-[calc(100%-1.5rem-env(safe-area-inset-top))]", className),
|
|
370
370
|
...props,
|
|
371
371
|
children
|
|
372
372
|
});
|