@orderly.network/portfolio 3.1.2 → 3.1.3-alpha.0

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.mjs CHANGED
@@ -6410,13 +6410,17 @@ var LayoutProvider = (props) => {
6410
6410
  return /* @__PURE__ */ jsx(LayoutContext.Provider, { value: memoizedValue, children });
6411
6411
  };
6412
6412
  var PortfolioLayoutMobile = (props) => {
6413
+ const hasBottomNav = props.bottomNavProps?.mainMenus?.some(
6414
+ (menu) => menu.href === props.current
6415
+ );
6416
+ const contentBottomPadding = hasBottomNav ? "calc(64px + 12px + env(safe-area-inset-bottom))" : "calc(12px + env(safe-area-inset-bottom))";
6413
6417
  return /* @__PURE__ */ jsx(LayoutProvider, { ...props, children: /* @__PURE__ */ jsxs(
6414
6418
  Flex,
6415
6419
  {
6416
6420
  direction: "column",
6417
6421
  width: "100%",
6418
6422
  height: "100%",
6419
- className: "oui-h-full-screen oui-bg-base-10",
6423
+ className: "oui-bg-base-10",
6420
6424
  children: [
6421
6425
  /* @__PURE__ */ jsx("header", { className: "oui-scaffold-topNavbar oui-sticky oui-top-0 oui-z-10 oui-w-full oui-bg-base-10", children: /* @__PURE__ */ jsx(
6422
6426
  MainNavMobile,
@@ -6427,7 +6431,18 @@ var PortfolioLayoutMobile = (props) => {
6427
6431
  routerAdapter: props.routerAdapter
6428
6432
  }
6429
6433
  ) }),
6430
- /* @__PURE__ */ jsx(Box, { className: "oui-scaffold-container oui-min-h-[calc(100vh-44px-64px-env(safe-area-inset-bottom))] oui-w-full", children: props.children }),
6434
+ /* @__PURE__ */ jsx(
6435
+ Box,
6436
+ {
6437
+ className: "oui-scaffold-container oui-min-h-[calc(100vh-44px)] oui-w-full",
6438
+ style: {
6439
+ // Use dvh when available, with the className vh value as a fallback for older WebViews.
6440
+ minHeight: "calc(100dvh - 44px)",
6441
+ paddingBottom: contentBottomPadding
6442
+ },
6443
+ children: props.children
6444
+ }
6445
+ ),
6431
6446
  /* @__PURE__ */ jsx("footer", { className: "oui-scaffold-bottomNav oui-fixed oui-bottom-0 oui-z-10 oui-w-full oui-bg-base-9 oui-pb-[calc(env(safe-area-inset-bottom))]", children: /* @__PURE__ */ jsx(
6432
6447
  BottomNav,
6433
6448
  {