@orderly.network/portfolio 3.0.1-alpha.0 → 3.0.2-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 CHANGED
@@ -2393,8 +2393,7 @@ var init_assets_ui_desktop = __esm({
2393
2393
  uiConnector.AuthGuardDataTable,
2394
2394
  {
2395
2395
  classNames: {
2396
- root: "oui-rounded-xl oui-font-semibold",
2397
- scroll: "oui-h-[252px]"
2396
+ root: "oui-rounded-xl oui-font-semibold"
2398
2397
  },
2399
2398
  loading: props.canTrade,
2400
2399
  columns: [],
@@ -2402,7 +2401,7 @@ var init_assets_ui_desktop = __esm({
2402
2401
  }
2403
2402
  );
2404
2403
  }
2405
- return /* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { width: "100%", height: "100%", direction: "column", className: root, children: [
2404
+ return /* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { width: "100%", direction: "column", className: root, children: [
2406
2405
  /* @__PURE__ */ jsxRuntime.jsx(
2407
2406
  DataFilterSection,
2408
2407
  {
@@ -2445,8 +2444,10 @@ var init_assets_ui_desktop = __esm({
2445
2444
  bordered: true,
2446
2445
  className: "oui-font-semibold",
2447
2446
  classNames: {
2448
- // root: "oui-bg-transparent",
2449
- // scroll: "oui-min-h-0",
2447
+ scroll: ui.cn(
2448
+ "oui-h-auto oui-min-h-0 oui-overflow-x-auto oui-overflow-y-visible",
2449
+ dataTableClassNames?.scroll
2450
+ ),
2450
2451
  ...dataTableClassNames
2451
2452
  },
2452
2453
  columns,
@@ -2465,7 +2466,7 @@ var init_assets_ui_desktop = __esm({
2465
2466
  return /* @__PURE__ */ jsxRuntime.jsx(
2466
2467
  ui.Card,
2467
2468
  {
2468
- className: "oui-bg-transparent oui-p-0 oui-border-none oui-shadow-none",
2469
+ className: "oui-border-none oui-bg-transparent oui-p-0 oui-shadow-none",
2469
2470
  classNames: { content: "!oui-pt-0" },
2470
2471
  children: /* @__PURE__ */ jsxRuntime.jsxs(
2471
2472
  ui.Tabs,
@@ -6329,7 +6330,7 @@ var usePortfolioLayoutScript = (props) => {
6329
6330
  }
6330
6331
  ];
6331
6332
  }, [t]);
6332
- const hideSideBar = hooks.useMediaQuery("(max-width: 768px)");
6333
+ const { isMobile: hideSideBar } = ui.useScreen();
6333
6334
  return {
6334
6335
  items,
6335
6336
  current,