diff --git a/package.json b/package.json index 79af5fb1..e916a19c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vocechat-web", - "version": "0.9.65", + "version": "0.9.66", "homepage": "https://voce.chat", "dependencies": { "@metamask/onboarding": "^1.0.1", diff --git a/public/widget.html b/public/widget.html index 7a0dc5a0..36aa03a1 100644 --- a/public/widget.html +++ b/public/widget.html @@ -25,6 +25,13 @@ html.dark.close #root { background: transparent; } + /* 关闭状态下,Icon 定位在右下角 */ + html.close #root { + display: flex; + align-items: flex-end; + justify-content: flex-end; + padding: 16px; + } diff --git a/public/widget.js b/public/widget.js index 729b2a2d..9618cd63 100644 --- a/public/widget.js +++ b/public/widget.js @@ -19,7 +19,7 @@ popupImage = "", popupClosable = "true", showPopup = "true", - useShadowDom = "true" + useShadowDom = "false" } = d.currentScript.dataset; const _src = d.currentScript.src; const origin = new URL(_src).origin; @@ -31,7 +31,6 @@ const baseStyles = { position: "fixed", - right: "16px", [position]: "16px", // [position] = [right] or [left] bottom: "16px", border: "none",