mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-11 05:29:15 +08:00
fix: user-select style and pre-create iframe in embed.js (#8093)
This commit is contained in:
parent
fa34b9aed6
commit
551b33c8e5
@ -73,7 +73,7 @@
|
|||||||
box-shadow: rgba(150, 150, 150, 0.2) 0px 10px 30px 0px, rgba(150, 150, 150, 0.2) 0px 0px 0px 1px;
|
box-shadow: rgba(150, 150, 150, 0.2) 0px 10px 30px 0px, rgba(150, 150, 150, 0.2) 0px 0px 0px 1px;
|
||||||
bottom: 5rem; right: 1rem; width: 24rem; max-width: calc(100vw - 2rem); height: 40rem;
|
bottom: 5rem; right: 1rem; width: 24rem; max-width: calc(100vw - 2rem); height: 40rem;
|
||||||
max-height: calc(100vh - 6rem); border-radius: 0.75rem; display: flex; z-index: 2147483647;
|
max-height: calc(100vh - 6rem); border-radius: 0.75rem; display: flex; z-index: 2147483647;
|
||||||
overflow: hidden; left: unset; background-color: #F3F4F6;
|
overflow: hidden; left: unset; background-color: #F3F4F6;user-select: none;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
document.body.appendChild(iframe);
|
document.body.appendChild(iframe);
|
||||||
@ -255,6 +255,9 @@
|
|||||||
if (!document.getElementById(buttonId)) {
|
if (!document.getElementById(buttonId)) {
|
||||||
createButton();
|
createButton();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
createIframe();
|
||||||
|
document.getElementById(iframeId).style.display = 'none';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add esc Exit keyboard event triggered
|
// Add esc Exit keyboard event triggered
|
||||||
|
32
web/public/embed.min.js
vendored
32
web/public/embed.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user