@juanitte/inoui 1.1.3 → 1.1.4

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/ino-ui.mjs CHANGED
@@ -3706,7 +3706,10 @@ function ic({
3706
3706
  return;
3707
3707
  }
3708
3708
  const A = C.current.getBoundingClientRect(), $ = D.getBoundingClientRect();
3709
- k ? (w.current.style.top = `${$.top - A.top}px`, w.current.style.height = `${$.height}px`) : (w.current.style.left = `${$.left - A.left}px`, w.current.style.width = `${$.width}px`), w.current.style.opacity = "1", k || D.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
3709
+ if (k ? (w.current.style.top = `${$.top - A.top}px`, w.current.style.height = `${$.height}px`) : (w.current.style.left = `${$.left - A.left}px`, w.current.style.width = `${$.width}px`), w.current.style.opacity = "1", !k && C.current) {
3710
+ const N = C.current, W = D.offsetLeft - N.offsetWidth / 2 + D.offsetWidth / 2;
3711
+ N.scrollTo({ left: W, behavior: "smooth" });
3712
+ }
3710
3713
  }, [h, k]);
3711
3714
  const E = j((D, A, $) => {
3712
3715
  if (u?.(D, { title: $, href: A }), !A.startsWith("#")) return;