forked from github/plane
[WEB-834] fix: close shortcut modle on outside click. (#4078)
This commit is contained in:
parent
8bdf8fa24f
commit
97fb08928f
@ -36,18 +36,18 @@ export const ShortcutsModal: FC<Props> = (props) => {
|
|||||||
<div className="fixed inset-0 bg-custom-backdrop transition-opacity" />
|
<div className="fixed inset-0 bg-custom-backdrop transition-opacity" />
|
||||||
</Transition.Child>
|
</Transition.Child>
|
||||||
|
|
||||||
<div className="fixed inset-0 z-20 h-full w-full overflow-y-auto">
|
<div className="fixed inset-0 z-20 overflow-y-auto">
|
||||||
<Transition.Child
|
<div className="my-10 flex items-center justify-center p-4 text-center sm:p-0 md:my-20">
|
||||||
as={Fragment}
|
<Transition.Child
|
||||||
enter="ease-out duration-300"
|
as={Fragment}
|
||||||
enterFrom="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
enter="ease-out duration-300"
|
||||||
enterTo="opacity-100 translate-y-0 sm:scale-100"
|
enterFrom="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
||||||
leave="ease-in duration-200"
|
enterTo="opacity-100 translate-y-0 sm:scale-100"
|
||||||
leaveFrom="opacity-100 translate-y-0 sm:scale-100"
|
leave="ease-in duration-200"
|
||||||
leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
leaveFrom="opacity-100 translate-y-0 sm:scale-100"
|
||||||
>
|
leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
||||||
<Dialog.Panel className="h-full w-full">
|
>
|
||||||
<div className="my-10 flex items-center justify-center p-4 text-center sm:p-0 md:my-20">
|
<Dialog.Panel className="relative flex h-full items-center justify-center">
|
||||||
<div className="flex h-[61vh] w-full flex-col space-y-4 overflow-hidden rounded-lg bg-custom-background-100 p-5 shadow-custom-shadow-md transition-all sm:w-[28rem]">
|
<div className="flex h-[61vh] w-full flex-col space-y-4 overflow-hidden rounded-lg bg-custom-background-100 p-5 shadow-custom-shadow-md transition-all sm:w-[28rem]">
|
||||||
<Dialog.Title as="h3" className="flex justify-between">
|
<Dialog.Title as="h3" className="flex justify-between">
|
||||||
<span className="text-lg font-medium">Keyboard shortcuts</span>
|
<span className="text-lg font-medium">Keyboard shortcuts</span>
|
||||||
@ -71,9 +71,9 @@ export const ShortcutsModal: FC<Props> = (props) => {
|
|||||||
</div>
|
</div>
|
||||||
<ShortcutCommandsList searchQuery={query} />
|
<ShortcutCommandsList searchQuery={query} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</Dialog.Panel>
|
||||||
</Dialog.Panel>
|
</Transition.Child>
|
||||||
</Transition.Child>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</Transition.Root>
|
</Transition.Root>
|
||||||
|
Loading…
Reference in New Issue
Block a user