mirror of
https://github.com/open-webui/extension
synced 2025-06-26 18:25:58 +00:00
feat: click outside to close
This commit is contained in:
@@ -43,7 +43,12 @@ export const SpotlightSearch = () => {
|
||||
};
|
||||
|
||||
return open ? (
|
||||
<div className="tlwd-fixed tlwd-top-0 tlwd-right-0 tlwd-left-0 tlwd-bottom-0 tlwd-w-full tlwd-min-h-screen tlwd-h-screen tlwd-flex tlwd-justify-center tlwd-z-[9999999999] tlwd-overflow-hidden tlwd-overscroll-contain">
|
||||
<div
|
||||
className="tlwd-fixed tlwd-top-0 tlwd-right-0 tlwd-left-0 tlwd-bottom-0 tlwd-w-full tlwd-min-h-screen tlwd-h-screen tlwd-flex tlwd-justify-center tlwd-z-[9999999999] tlwd-overflow-hidden tlwd-overscroll-contain"
|
||||
onMouseDown={() => {
|
||||
setOpen(false);
|
||||
}}
|
||||
>
|
||||
<div className=" tlwd-m-auto tlwd-max-w-xl tlwd-w-full tlwd-pb-32">
|
||||
<div className="tlwd-w-full tlwd-flex tlwd-flex-col tlwd-justify-between tlwd-py-2.5 tlwd-px-3.5 tlwd-rounded-2xl tlwd-outline tlwd-outline-1 tlwd-outline-gray-850 tlwd-backdrop-blur-3xl tlwd-bg-gray-850/70 shadow-4xl modal-animation">
|
||||
<form
|
||||
|
||||
Reference in New Issue
Block a user