mirror of
https://github.com/open-webui/extension
synced 2025-06-26 18:25:58 +00:00
refac
This commit is contained in:
parent
870400b5d1
commit
a364b60fdd
4
extension/dist/main.js
vendored
4
extension/dist/main.js
vendored
File diff suppressed because one or more lines are too long
2
extension/dist/style.css
vendored
2
extension/dist/style.css
vendored
File diff suppressed because one or more lines are too long
@ -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;
|
||||
}}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user