@gardenfi/garden-book 0.1.79 → 0.1.80

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/ui.es.js CHANGED
@@ -14232,11 +14232,19 @@ const InfoBadge = ({ children: e, className: t, ...i }) => /* @__PURE__ */ jsx(
14232
14232
  const [a, o] = useState(!0), [c, l] = useState(!0), f = useRef(null), u = () => {
14233
14233
  if (f.current) {
14234
14234
  const { scrollTop: m, scrollHeight: p, clientHeight: b } = f.current;
14235
- o(m + b < p), l(p - m !== p);
14235
+ o(m + b < p), l(m > 0);
14236
14236
  }
14237
14237
  };
14238
14238
  return useEffect(() => {
14239
+ const m = f.current;
14240
+ if (!m) return;
14239
14241
  u();
14242
+ const p = new ResizeObserver(() => {
14243
+ u();
14244
+ });
14245
+ return p.observe(m), () => {
14246
+ p.disconnect();
14247
+ };
14240
14248
  }, []), /* @__PURE__ */ jsxs(
14241
14249
  "div",
14242
14250
  {