@snowpact/react-tanstack-query-table 1.10.3 → 1.10.5

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
@@ -5945,7 +5945,7 @@ function ms({
5945
5945
  return /* @__PURE__ */ f(
5946
5946
  "th",
5947
5947
  {
5948
- className: q("snow-table-header-cell", S && "snow-cursor-pointer"),
5948
+ className: q("snow-table-header-cell", S && Z.column.getCanSort() && "snow-cursor-pointer"),
5949
5949
  onClick: Z.column.getToggleSortingHandler(),
5950
5950
  style: {
5951
5951
  "--snow-col-width": X == null ? void 0 : X.width,
@@ -6028,7 +6028,9 @@ function jf({ label: e, x: t, y: n }) {
6028
6028
  return Qo(() => {
6029
6029
  const s = o.current, a = r.current;
6030
6030
  if (!s || !a) return;
6031
- const c = s.offsetWidth, u = window.innerWidth - Zo, l = Zo;
6031
+ const c = s.offsetWidth;
6032
+ if (c === 0) return;
6033
+ const u = window.innerWidth - Zo, l = Zo;
6032
6034
  let p = t;
6033
6035
  if (t + c / 2 > u && (p = u - c / 2), t - c / 2 < l && (p = l + c / 2), p !== t) {
6034
6036
  s.style.left = `${p}px`;