@orderly.network/portfolio 3.1.2 → 3.1.3-alpha.1
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.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-
|
|
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(
|
|
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
|
{
|