@loafmarkets/ui 0.1.103 → 0.1.105

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.mjs CHANGED
@@ -11967,7 +11967,7 @@ function PortfolioActivityPanel({
11967
11967
  /* @__PURE__ */ jsx(PositionsHeaderCell, { $align: "right", children: "Entry Price" }),
11968
11968
  /* @__PURE__ */ jsx(PositionsHeaderCell, { $align: "right", children: "Mark Price" }),
11969
11969
  /* @__PURE__ */ jsx(PositionsHeaderCell, { $align: "right", children: "PNL (%)" }),
11970
- onClosePosition && /* @__PURE__ */ jsx(PositionsHeaderCell, { $align: "right", children: "Close" })
11970
+ onClosePosition && /* @__PURE__ */ jsx(PositionsHeaderCell, { children: "Close" })
11971
11971
  ] }),
11972
11972
  pageSlice(positions).map((pos) => {
11973
11973
  const currentValue = pos.quantity * pos.marketPrice;
@@ -11992,7 +11992,7 @@ function PortfolioActivityPanel({
11992
11992
  "%"
11993
11993
  ] })
11994
11994
  ] }),
11995
- onClosePosition && /* @__PURE__ */ jsx(PositionsCell, { $align: "right", children: /* @__PURE__ */ jsxs(CloseActions, { children: [
11995
+ onClosePosition && /* @__PURE__ */ jsx(PositionsCell, { $align: "left", children: /* @__PURE__ */ jsxs(CloseActions, { children: [
11996
11996
  /* @__PURE__ */ jsx(CloseBtn2, { onClick: (e) => {
11997
11997
  e.stopPropagation();
11998
11998
  onClosePosition(pos.tokenName, "limit", pos.quantity, pos.marketPrice);
@@ -12388,8 +12388,8 @@ var PaginationLabel = styled25.span`
12388
12388
  `;
12389
12389
  var PositionsHeader = styled25.div`
12390
12390
  display: grid;
12391
- grid-template-columns: ${(p) => p.$hasClose ? "1.2fr 0.8fr 1fr 1fr 1fr 1.2fr auto" : "1.2fr 0.8fr 1fr 1fr 1fr 1.2fr"};
12392
- gap: 0 0.5rem;
12391
+ grid-template-columns: ${(p) => p.$hasClose ? "1.4fr 0.8fr 1fr 1fr 1fr 1.1fr 110px" : "1.2fr 0.8fr 1fr 1fr 1fr 1.2fr"};
12392
+ gap: 0 0.75rem;
12393
12393
  padding: 0.4rem 0.5rem;
12394
12394
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
12395
12395
  `;
@@ -12402,9 +12402,9 @@ var PositionsHeaderCell = styled25.div`
12402
12402
  `;
12403
12403
  var PositionsRow = styled25.div`
12404
12404
  display: grid;
12405
- grid-template-columns: ${(p) => p.$hasClose ? "1.2fr 0.8fr 1fr 1fr 1fr 1.2fr auto" : "1.2fr 0.8fr 1fr 1fr 1fr 1.2fr"};
12405
+ grid-template-columns: ${(p) => p.$hasClose ? "1.4fr 0.8fr 1fr 1fr 1fr 1.1fr 110px" : "1.2fr 0.8fr 1fr 1fr 1fr 1.2fr"};
12406
12406
  align-items: center;
12407
- gap: 0 0.5rem;
12407
+ gap: 0 0.75rem;
12408
12408
  padding: 0.5rem 0.5rem;
12409
12409
  cursor: pointer;
12410
12410
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
@@ -12532,19 +12532,19 @@ var CloseActions = styled25.div`
12532
12532
  `;
12533
12533
  var CloseBtn2 = styled25.button`
12534
12534
  background: transparent;
12535
- border: 1px solid rgba(246, 70, 93, 0.25);
12535
+ border: 1px solid rgba(230, 200, 126, 0.25);
12536
12536
  border-radius: 4px;
12537
12537
  padding: 0.15rem 0.5rem;
12538
12538
  font-size: 0.62rem;
12539
12539
  font-weight: 600;
12540
- color: #f6465d;
12540
+ color: #E6C87E;
12541
12541
  cursor: pointer;
12542
12542
  white-space: nowrap;
12543
12543
  transition: all 0.15s ease;
12544
12544
 
12545
12545
  &:hover {
12546
- background: rgba(246, 70, 93, 0.1);
12547
- border-color: rgba(246, 70, 93, 0.5);
12546
+ background: rgba(230, 200, 126, 0.1);
12547
+ border-color: rgba(230, 200, 126, 0.5);
12548
12548
  }
12549
12549
  `;
12550
12550
  function NewsOrdersSection({ newsItems, newsConnectionStatus, activityData }) {