This commit is contained in:
Timothy J. Baek 2024-05-23 13:08:19 -07:00
parent 870400b5d1
commit a364b60fdd
3 changed files with 8 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -99,7 +99,6 @@
(e.shiftKey || e.altKey)
) {
e.preventDefault();
try {
const response = await chrome.runtime.sendMessage({
action: "getSelection",
@ -114,6 +113,8 @@
show = !show;
console.log("toggle", show, searchValue);
setTimeout(() => {
const inputElement = document.getElementById(
"open-webui-search-input"
@ -215,11 +216,11 @@
});
</script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
{#if show}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
class="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"
class="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 tlwd-pointer-events-none"
on:mousedown={() => {
show = false;
}}