@orderly.network/trading 3.0.4-alpha.2 → 3.0.4-alpha.3

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
@@ -8495,7 +8495,8 @@ var DesktopLayout4 = (props) => {
8495
8495
  markets.SideMarketsWidget,
8496
8496
  {
8497
8497
  symbol: props.symbol,
8498
- onSymbolChange: props.onSymbolChange
8498
+ onSymbolChange: props.onSymbolChange,
8499
+ panelSize
8499
8500
  }
8500
8501
  );
8501
8502
  const toggleButtoncls = ui.cn(
@@ -8537,13 +8538,13 @@ var DesktopLayout4 = (props) => {
8537
8538
  height: "100%",
8538
8539
  width: marketsWidth,
8539
8540
  style: { minWidth: marketsWidth },
8540
- className: "oui-trading-markets-container oui-transition-all oui-duration-150",
8541
+ className: "oui-trading-markets-container oui-min-h-0 oui-min-w-0 oui-max-w-full oui-transition-all oui-duration-150",
8541
8542
  onTransitionEnd: () => setAnimating(false),
8542
8543
  children: /* @__PURE__ */ jsxRuntime.jsxs(
8543
8544
  ui.Flex,
8544
8545
  {
8545
8546
  id: "oui-side-markets",
8546
- className: "oui-relative oui-font-semibold",
8547
+ className: "oui-relative oui-min-h-0 oui-min-w-0 oui-font-semibold",
8547
8548
  direction: "column",
8548
8549
  gapY: 5,
8549
8550
  height: "100%",
@@ -8554,10 +8555,7 @@ var DesktopLayout4 = (props) => {
8554
8555
  ui.Box,
8555
8556
  {
8556
8557
  width: "100%",
8557
- className: ui.cn(
8558
- panelSize === "large" && "oui-h-[calc(100%_-_56px)]",
8559
- panelSize === "middle" && "oui-h-full"
8560
- ),
8558
+ className: "oui-min-h-0 oui-min-w-0 oui-max-w-full oui-flex-1 oui-overflow-hidden oui-rounded-b-2xl",
8561
8559
  children: marketsWidget
8562
8560
  }
8563
8561
  )
@@ -8601,10 +8599,10 @@ var DesktopLayout4 = (props) => {
8601
8599
  {
8602
8600
  classNames: {
8603
8601
  root: ui.cn(
8604
- tradingViewFullScreen ? "!oui-absolute oui-top-0 oui-left-0 oui-right-0 oui-bottom-0 oui-z-[40] oui-bg-base-10" : "oui-z-1"
8602
+ tradingViewFullScreen ? "!oui-absolute oui-inset-0 oui-z-40 oui-bg-base-10" : "oui-z-1"
8605
8603
  ),
8606
8604
  content: ui.cn(
8607
- tradingViewFullScreen ? "oui-top-3 oui-bottom-3 oui-left-3 oui-right-3 oui-bg-base-9 oui-rounded-[16px] oui-overflow-hidden" : ""
8605
+ tradingViewFullScreen ? "oui-inset-3 oui-overflow-hidden oui-rounded-[16px] oui-bg-base-9" : ""
8608
8606
  )
8609
8607
  },
8610
8608
  symbol: props.symbol,
@@ -8736,7 +8734,8 @@ var DesktopLayout4 = (props) => {
8736
8734
  ui.Flex,
8737
8735
  {
8738
8736
  gap: 2,
8739
- className: "oui-flex-1 oui-overflow-hidden",
8737
+ itemAlign: "stretch",
8738
+ className: "oui-min-h-0 oui-flex-1 oui-overflow-hidden",
8740
8739
  style: { minWidth: marketsWidth + tradingViewMinWidth + space },
8741
8740
  children: [
8742
8741
  marketLayout === "left" && marketsView,
@@ -8766,10 +8765,20 @@ var DesktopLayout4 = (props) => {
8766
8765
  );
8767
8766
  const renderTradingViewAndOrderbookView = () => {
8768
8767
  if (max4XL && layout === "left") {
8769
- return /* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { gapX: 2, style: { minHeight: orderbookMinHeight }, height: "100%", children: [
8770
- tradingViewAndOrderbookView,
8771
- marketLayout === "left" && marketsView
8772
- ] });
8768
+ return /* @__PURE__ */ jsxRuntime.jsxs(
8769
+ ui.Flex,
8770
+ {
8771
+ gapX: 2,
8772
+ itemAlign: "stretch",
8773
+ className: "oui-min-h-0",
8774
+ style: { minHeight: orderbookMinHeight },
8775
+ height: "100%",
8776
+ children: [
8777
+ tradingViewAndOrderbookView,
8778
+ marketLayout === "left" && marketsView
8779
+ ]
8780
+ }
8781
+ );
8773
8782
  }
8774
8783
  return tradingViewAndOrderbookView;
8775
8784
  };
@@ -8898,6 +8907,7 @@ var DesktopLayout4 = (props) => {
8898
8907
  pt: 3,
8899
8908
  r: "2xl",
8900
8909
  width: marketsWidth,
8910
+ className: "oui-overflow-hidden",
8901
8911
  style: {
8902
8912
  minHeight: tradindviewMinHeight + orderbookMinHeight + space,
8903
8913
  maxHeight: tradindviewMaxHeight + orderbookMaxHeight + space
@@ -9075,8 +9085,9 @@ var DesktopLayout4 = (props) => {
9075
9085
  /* @__PURE__ */ jsxRuntime.jsxs(
9076
9086
  ui.Flex,
9077
9087
  {
9088
+ itemAlign: "stretch",
9078
9089
  className: ui.cn(
9079
- "oui-flex-1 oui-overflow-hidden",
9090
+ "oui-min-h-0 oui-flex-1 oui-overflow-hidden",
9080
9091
  layout === "left" && "oui-flex-row-reverse"
9081
9092
  ),
9082
9093
  gap: 2,