mirror of
https://github.com/open-webui/computer.git
synced 2026-11-19 20:27:05 +03:00
refac
This commit is contained in:
@@ -401,7 +401,7 @@
|
||||
if (!child) return;
|
||||
const popupHeight = child.offsetHeight || 200;
|
||||
child.style.position = 'fixed';
|
||||
child.style.left = `${Math.max(8, Math.min(rect.left, window.innerWidth - 340))}px`;
|
||||
child.style.left = `${Math.max(8, Math.min(rect.left, window.innerWidth - 280))}px`;
|
||||
child.style.top = `${rect.top - popupHeight - 8}px`;
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
</script>
|
||||
|
||||
<div
|
||||
class="fixed z-50 w-72 max-h-48 overflow-y-auto rounded-xl bg-white dark:bg-[#1a1a1a] border border-gray-150 dark:border-white/6 shadow-xl p-0.5"
|
||||
class="fixed z-50 w-64 max-h-48 overflow-y-auto rounded-xl bg-white dark:bg-[#1a1a1a] border border-gray-150 dark:border-white/6 shadow-xl p-0.5"
|
||||
>
|
||||
{#if items.length === 0}
|
||||
<div class="px-3 py-2 text-xs text-gray-400 dark:text-gray-600">No skills found</div>
|
||||
|
||||
Reference in New Issue
Block a user