From e332df016605d1ed4ad67fd32cdb67f22acf15e4 Mon Sep 17 00:00:00 2001 From: haorwen Date: Sun, 15 Mar 2026 08:59:31 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20bump=20version=20to=20v0.9.656=20?= =?UTF-8?q?=E5=B9=B6=E8=B0=83=E6=95=B4widget=E5=85=B3=E9=97=AD=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=A0=B7=E5=BC=8F=E5=8F=8A=E7=A6=81=E7=94=A8Shadow=20?= =?UTF-8?q?DOM=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- public/widget.html | 7 +++++++ public/widget.js | 3 +-- 3 files changed, 9 insertions(+), 3 deletions(-) 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",