@kodiak-finance/orderly-portfolio 2.9.4 → 2.9.5

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.js CHANGED
@@ -6796,13 +6796,17 @@ var LeftSidebar = (props) => {
6796
6796
  // src/layout/layout.ui.mobile.tsx
6797
6797
  init_context();
6798
6798
  var PortfolioLayoutMobile = (props) => {
6799
+ const hasBottomNav = props.bottomNavProps?.mainMenus?.some(
6800
+ (menu) => menu.href === props.current
6801
+ );
6802
+ const contentBottomPadding = hasBottomNav ? "calc(64px + 12px + env(safe-area-inset-bottom))" : "calc(12px + env(safe-area-inset-bottom))";
6799
6803
  return /* @__PURE__ */ jsxRuntime.jsx(LayoutProvider, { ...props, children: /* @__PURE__ */ jsxRuntime.jsxs(
6800
6804
  orderlyUi.Flex,
6801
6805
  {
6802
6806
  direction: "column",
6803
6807
  width: "100%",
6804
6808
  height: "100%",
6805
- className: "oui-h-full-screen oui-bg-base-10",
6809
+ className: "oui-bg-base-10",
6806
6810
  children: [
6807
6811
  /* @__PURE__ */ jsxRuntime.jsx("header", { className: "oui-scaffold-topNavbar oui-sticky oui-top-0 oui-z-10 oui-w-full oui-bg-base-10", children: /* @__PURE__ */ jsxRuntime.jsx(
6808
6812
  orderlyUiScaffold.MainNavMobile,
@@ -6820,7 +6824,18 @@ var PortfolioLayoutMobile = (props) => {
6820
6824
  routerAdapter: props.routerAdapter
6821
6825
  }
6822
6826
  ) }),
6823
- /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Box, { className: "oui-scaffold-container oui-min-h-[calc(100vh-44px-64px-env(safe-area-inset-bottom))] oui-w-full", children: props.children }),
6827
+ /* @__PURE__ */ jsxRuntime.jsx(
6828
+ orderlyUi.Box,
6829
+ {
6830
+ className: "oui-scaffold-container oui-min-h-[calc(100vh-44px)] oui-w-full",
6831
+ style: {
6832
+ // Use dvh when available, with the className vh value as a fallback for older WebViews.
6833
+ minHeight: "calc(100dvh - 44px)",
6834
+ paddingBottom: contentBottomPadding
6835
+ },
6836
+ children: props.children
6837
+ }
6838
+ ),
6824
6839
  /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx(
6825
6840
  orderlyUiScaffold.BottomNav,
6826
6841
  {