@cassius0924/dsh-usage-dashboard 0.9.0 → 0.9.1
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/lib/client.js +5 -7
- package/lib/client.js.map +2 -2
- package/lib/types/client/dom.d.ts +11 -5
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -1248,10 +1248,8 @@ function getShellFrame(node) {
|
|
|
1248
1248
|
return overlay?.parentElement ?? null;
|
|
1249
1249
|
}
|
|
1250
1250
|
function getComposerElement(frame) {
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
}
|
|
1254
|
-
return slotElement(frame, "conversation.composer.dock", "ancestor");
|
|
1251
|
+
const root = frame ?? document.documentElement;
|
|
1252
|
+
return slotElement(root, "conversation.composer", "ancestor") ?? slotElement(root, "conversation.composer.dock", "ancestor");
|
|
1255
1253
|
}
|
|
1256
1254
|
function getComposerInputElement(frame) {
|
|
1257
1255
|
const root = frame ?? document.documentElement;
|
|
@@ -3185,7 +3183,7 @@ function BalanceDashboard(props) {
|
|
|
3185
3183
|
] }, i)) }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "dq-empty", children: t("cache.empty") })
|
|
3186
3184
|
] })
|
|
3187
3185
|
] }),
|
|
3188
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: "dq-footer", children: "@cassius0924/dsh-usage-dashboard v0.9.
|
|
3186
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: "dq-footer", children: "@cassius0924/dsh-usage-dashboard v0.9.1" })
|
|
3189
3187
|
] });
|
|
3190
3188
|
}
|
|
3191
3189
|
|
|
@@ -4109,8 +4107,8 @@ function getBounds(node) {
|
|
|
4109
4107
|
if (headerRect !== null && headerRect.bottom > top && headerRect.bottom < bottom - MIN_REGION_HEIGHT) {
|
|
4110
4108
|
top = headerRect.bottom;
|
|
4111
4109
|
}
|
|
4112
|
-
const composerRect =
|
|
4113
|
-
if (composerRect !== null && composerRect.top < bottom && composerRect.top > top +
|
|
4110
|
+
const composerRect = getComposerElement(frame)?.getBoundingClientRect() ?? null;
|
|
4111
|
+
if (composerRect !== null && composerRect.top < bottom && composerRect.top > top + (bottom - top) / 2) {
|
|
4114
4112
|
bottom = composerRect.top;
|
|
4115
4113
|
}
|
|
4116
4114
|
return { left, top, right, bottom };
|