mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 19:37:47 +01:00
refac
This commit is contained in:
@@ -83,7 +83,7 @@
|
||||
}}
|
||||
>
|
||||
<div>
|
||||
<ChatBubbleOval class="size-4" />
|
||||
<ChatBubbleOval className="size-4" />
|
||||
</div>
|
||||
|
||||
<div class="font-medium">
|
||||
|
||||
@@ -59,7 +59,10 @@
|
||||
document.body.appendChild(modalElement);
|
||||
focusTrap = FocusTrap.createFocusTrap(modalElement, {
|
||||
allowOutsideClick: (e) => {
|
||||
return e.target.closest('[data-sonner-toast]') !== null;
|
||||
return (
|
||||
e.target.closest('[data-sonner-toast]') !== null ||
|
||||
e.target.closest('.modal-content') === null
|
||||
);
|
||||
}
|
||||
});
|
||||
focusTrap.activate();
|
||||
|
||||
Reference in New Issue
Block a user