@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.js +17 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -2
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +18 -18
package/dist/index.js
CHANGED
|
@@ -6417,13 +6417,17 @@ var LayoutProvider = (props) => {
|
|
|
6417
6417
|
return /* @__PURE__ */ jsxRuntime.jsx(LayoutContext.Provider, { value: memoizedValue, children });
|
|
6418
6418
|
};
|
|
6419
6419
|
var PortfolioLayoutMobile = (props) => {
|
|
6420
|
+
const hasBottomNav = props.bottomNavProps?.mainMenus?.some(
|
|
6421
|
+
(menu) => menu.href === props.current
|
|
6422
|
+
);
|
|
6423
|
+
const contentBottomPadding = hasBottomNav ? "calc(64px + 12px + env(safe-area-inset-bottom))" : "calc(12px + env(safe-area-inset-bottom))";
|
|
6420
6424
|
return /* @__PURE__ */ jsxRuntime.jsx(LayoutProvider, { ...props, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6421
6425
|
ui.Flex,
|
|
6422
6426
|
{
|
|
6423
6427
|
direction: "column",
|
|
6424
6428
|
width: "100%",
|
|
6425
6429
|
height: "100%",
|
|
6426
|
-
className: "oui-
|
|
6430
|
+
className: "oui-bg-base-10",
|
|
6427
6431
|
children: [
|
|
6428
6432
|
/* @__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(
|
|
6429
6433
|
uiScaffold.MainNavMobile,
|
|
@@ -6434,7 +6438,18 @@ var PortfolioLayoutMobile = (props) => {
|
|
|
6434
6438
|
routerAdapter: props.routerAdapter
|
|
6435
6439
|
}
|
|
6436
6440
|
) }),
|
|
6437
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6441
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6442
|
+
ui.Box,
|
|
6443
|
+
{
|
|
6444
|
+
className: "oui-scaffold-container oui-min-h-[calc(100vh-44px)] oui-w-full",
|
|
6445
|
+
style: {
|
|
6446
|
+
// Use dvh when available, with the className vh value as a fallback for older WebViews.
|
|
6447
|
+
minHeight: "calc(100dvh - 44px)",
|
|
6448
|
+
paddingBottom: contentBottomPadding
|
|
6449
|
+
},
|
|
6450
|
+
children: props.children
|
|
6451
|
+
}
|
|
6452
|
+
),
|
|
6438
6453
|
/* @__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(
|
|
6439
6454
|
uiScaffold.BottomNav,
|
|
6440
6455
|
{
|