@manhphi1309/dialog 0.3.8 → 0.3.9

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 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-[96dvh] !max-h-[96dvh]", className),
393
+ className: (0, _manhphi1309_utils.cn)(snap && "h-[calc(96dvh-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-[96dvh] !max-h-[96dvh]", className),
369
+ className: cn(snap && "h-[calc(96dvh-env(safe-area-inset-top))]", className),
370
370
  ...props,
371
371
  children
372
372
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manhphi1309/dialog",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "sideEffects": false,
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",