@mx-cartographer/insights-ui 1.16.14-alpha.JB0 → 1.16.14-alpha.JB1

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.es.js CHANGED
@@ -242,7 +242,7 @@ const Be = ({
242
242
  }) => {
243
243
  const [h, c] = Z.useState(null), m = () => {
244
244
  const E = document.getElementsByClassName("mx-mini-insight-card")[0].clientHeight, y = document.getElementsByClassName("mx-mini-insight-card-header")[0].clientHeight + document.getElementsByClassName("mx-mini-insight-card-content-body")[0].clientHeight, k = E - y - 24;
245
- c(Math.floor(k / 22));
245
+ c(Math.floor(k / 20));
246
246
  };
247
247
  return Z.useEffect(() => (m(), window.addEventListener("resize", m), () => window.removeEventListener("resize", m)), []), /* @__PURE__ */ e(
248
248
  j,
@@ -1202,10 +1202,7 @@ const de = (t) => {
1202
1202
  if (o.current) {
1203
1203
  const h = o.current, c = h.parentElement;
1204
1204
  if (c) {
1205
- const E = Array.from(c.children).reduce((v, f) => f !== h ? v + f.clientHeight : v, 0), k = c.clientHeight - E - 24, x = parseInt(
1206
- window.getComputedStyle(h).lineHeight,
1207
- 10
1208
- ), J = Math.floor(k / x);
1205
+ const E = Array.from(c.children).reduce((v, f) => f !== h ? v + f.clientHeight : v, 0), k = c.clientHeight - E - 24, x = parseInt(window.getComputedStyle(h).lineHeight, 10) + 4, J = Math.floor(k / x);
1209
1206
  J !== l && s(J);
1210
1207
  }
1211
1208
  }