fix styling
This commit is contained in:
@@ -12,6 +12,10 @@ const focusableSelector = [
|
|||||||
"[tabindex]:not([tabindex='-1'])"
|
"[tabindex]:not([tabindex='-1'])"
|
||||||
].join(",");
|
].join(",");
|
||||||
|
|
||||||
|
if (chatDrawer && chatDrawer.parentElement !== document.body) {
|
||||||
|
document.body.appendChild(chatDrawer);
|
||||||
|
}
|
||||||
|
|
||||||
function getFocusableElements() {
|
function getFocusableElements() {
|
||||||
if (!chatDrawer) return [];
|
if (!chatDrawer) return [];
|
||||||
return Array.from(chatDrawer.querySelectorAll(focusableSelector))
|
return Array.from(chatDrawer.querySelectorAll(focusableSelector))
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ const files = [
|
|||||||
"src/services/personaService.js",
|
"src/services/personaService.js",
|
||||||
"public/script.js",
|
"public/script.js",
|
||||||
"public/app/api.js",
|
"public/app/api.js",
|
||||||
|
"public/app/chatDrawer.js",
|
||||||
"public/app/constants.js",
|
"public/app/constants.js",
|
||||||
"public/app/dom.js"
|
"public/app/dom.js"
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user