mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-19 04:53:52 +00:00
refac
This commit is contained in:
parent
9cf48f4fb0
commit
a575875cc3
1 changed files with 1 additions and 8 deletions
|
|
@ -127,13 +127,6 @@
|
|||
onClose();
|
||||
}
|
||||
|
||||
function dismissLayer() {
|
||||
if (panel) panel = null;
|
||||
else if (preview) preview = false;
|
||||
else close();
|
||||
input?.focus();
|
||||
}
|
||||
|
||||
async function open(result = selected) {
|
||||
if (!result) return;
|
||||
await goto(result.url);
|
||||
|
|
@ -218,7 +211,7 @@
|
|||
bind:show
|
||||
size={preview ? 'xl' : 'lg'}
|
||||
ariaLabel={$i18n.t('Search workspace')}
|
||||
onRequestClose={dismissLayer}
|
||||
onRequestClose={close}
|
||||
className="bg-white dark:bg-gray-850 rounded-2xl !border-gray-100 dark:!border-gray-800"
|
||||
>
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue