@fileverse-dev/ddoc 2.0.8-patch-8 → 2.0.8-patch-9
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 +8 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -79895,7 +79895,7 @@ const s5 = [
|
|
79895
79895
|
style: { top: e, left: t },
|
79896
79896
|
className: "w-[300px] absolute bg-[#F8F9FA] p-3 shadow-[0px_4px_16px_-4px_rgba(0,0,0,0.15)] z-[99] rounded-md",
|
79897
79897
|
children: [
|
79898
|
-
/* @__PURE__ */ P.jsx("div", { className: "bg-[#F8F9FA] w-
|
79898
|
+
/* @__PURE__ */ P.jsx("div", { className: "bg-[#F8F9FA] w-full font-normal min-h-[44px] max-h-[196px] pt-2 border-none overflow-y-auto no-scrollbar", children: /* @__PURE__ */ P.jsx("p", { children: n }) }),
|
79899
79899
|
/* @__PURE__ */ P.jsxs("div", { className: "h-full flex items-center gap-2 mt-3", children: [
|
79900
79900
|
/* @__PURE__ */ P.jsx("span", { className: "w-full text-[12px] text-[#77818A]", children: "Edit Comment" }),
|
79901
79901
|
/* @__PURE__ */ P.jsx(
|
@@ -136730,7 +136730,13 @@ const pmt = on.create({
|
|
136730
136730
|
if (console.log({ commentMap: g }, "handleCommentInteraction"), !g) return;
|
136731
136731
|
const fe = re.target;
|
136732
136732
|
if (fe && fe.nodeName === "MARK" && fe.dataset.color && ((ge = fe == null ? void 0 : fe.dataset) == null ? void 0 : ge.color) === "#DDFBDF") {
|
136733
|
-
const pe = fe.getBoundingClientRect(),
|
136733
|
+
const pe = fe.getBoundingClientRect(), Y = 300, ke = Math.max(
|
136734
|
+
10,
|
136735
|
+
Math.min(
|
136736
|
+
pe.left + pe.width / 2 - Y / 2,
|
136737
|
+
window.innerWidth - Y - 10
|
136738
|
+
)
|
136739
|
+
), we = Math.max(10, pe.top - 130), _e = g.get(fe.textContent);
|
136734
136740
|
_e && (O(_e), D({ x: ke, y: we, visible: !0 }));
|
136735
136741
|
} else
|
136736
136742
|
D((pe) => ({ ...pe, visible: !1 }));
|