chore: bump version to v0.9.656 并调整widget关闭状态样式及禁用Shadow DOM模式
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "vocechat-web",
|
"name": "vocechat-web",
|
||||||
"version": "0.9.65",
|
"version": "0.9.66",
|
||||||
"homepage": "https://voce.chat",
|
"homepage": "https://voce.chat",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@metamask/onboarding": "^1.0.1",
|
"@metamask/onboarding": "^1.0.1",
|
||||||
|
|||||||
@@ -25,6 +25,13 @@
|
|||||||
html.dark.close #root {
|
html.dark.close #root {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
/* 关闭状态下,Icon 定位在右下角 */
|
||||||
|
html.close #root {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-end;
|
||||||
|
justify-content: flex-end;
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<body>
|
<body>
|
||||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||||
|
|||||||
+1
-2
@@ -19,7 +19,7 @@
|
|||||||
popupImage = "",
|
popupImage = "",
|
||||||
popupClosable = "true",
|
popupClosable = "true",
|
||||||
showPopup = "true",
|
showPopup = "true",
|
||||||
useShadowDom = "true"
|
useShadowDom = "false"
|
||||||
} = d.currentScript.dataset;
|
} = d.currentScript.dataset;
|
||||||
const _src = d.currentScript.src;
|
const _src = d.currentScript.src;
|
||||||
const origin = new URL(_src).origin;
|
const origin = new URL(_src).origin;
|
||||||
@@ -31,7 +31,6 @@
|
|||||||
|
|
||||||
const baseStyles = {
|
const baseStyles = {
|
||||||
position: "fixed",
|
position: "fixed",
|
||||||
right: "16px",
|
|
||||||
[position]: "16px", // [position] = [right] or [left]
|
[position]: "16px", // [position] = [right] or [left]
|
||||||
bottom: "16px",
|
bottom: "16px",
|
||||||
border: "none",
|
border: "none",
|
||||||
|
|||||||
Reference in New Issue
Block a user