diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 5bcb6c5053..a98671cf5d 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -12,7 +12,6 @@ "@fortawesome/free-solid-svg-icons": "^6.2.0", "@leeoniya/ufuzzy": "^0.8.0", "@redocly/json-to-json-schema": "^0.0.1", - "@sveltejs/svelte-virtual-list": "^3.0.1", "@types/autosize": "^4.0.1", "@types/node": "^18.11.9", "async-mutex": "^0.4.0", @@ -485,11 +484,6 @@ "vite": "^3.0.0" } }, - "node_modules/@sveltejs/svelte-virtual-list": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@sveltejs/svelte-virtual-list/-/svelte-virtual-list-3.0.1.tgz", - "integrity": "sha512-aF9TptS7NKKS7/TqpsxQBSDJ9Q0XBYzBehCeIC5DzdMEgrJZpIYao9LRLnyyo6SVodpapm2B7FE/Lj+FSA5/SQ==" - }, "node_modules/@sveltejs/vite-plugin-svelte": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-1.0.1.tgz", @@ -7346,11 +7340,6 @@ "tiny-glob": "^0.2.9" } }, - "@sveltejs/svelte-virtual-list": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@sveltejs/svelte-virtual-list/-/svelte-virtual-list-3.0.1.tgz", - "integrity": "sha512-aF9TptS7NKKS7/TqpsxQBSDJ9Q0XBYzBehCeIC5DzdMEgrJZpIYao9LRLnyyo6SVodpapm2B7FE/Lj+FSA5/SQ==" - }, "@sveltejs/vite-plugin-svelte": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-1.0.1.tgz", diff --git a/frontend/package.json b/frontend/package.json index 8dc99a7095..5af25c35da 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -63,7 +63,6 @@ "@fortawesome/free-solid-svg-icons": "^6.2.0", "@leeoniya/ufuzzy": "^0.8.0", "@redocly/json-to-json-schema": "^0.0.1", - "@sveltejs/svelte-virtual-list": "^3.0.1", "@types/autosize": "^4.0.1", "@types/node": "^18.11.9", "async-mutex": "^0.4.0", @@ -82,4 +81,4 @@ "svelte-select": "^5.0.0-beta.40", "vscode-ws-jsonrpc": "^2.0.1" } -} \ No newline at end of file +} diff --git a/frontend/src/lib/components/Dropdown.svelte b/frontend/src/lib/components/Dropdown.svelte index 1d605c06a5..cdb8d51b44 100644 --- a/frontend/src/lib/components/Dropdown.svelte +++ b/frontend/src/lib/components/Dropdown.svelte @@ -1,120 +1,94 @@ -
- - -
+ {#if dropdownItems} + {#each dropdownItems as item, i} + {#if item.action} + + {:else if item.href} + { + if (!item.disabled) { + close() + } + }} + class="block px-4 py-2 text-sm text-gray-700 hover:drop-shadow-sm hover:bg-gray-50 hover:bg-opacity-30" + role="menuitem" + tabindex="-1" + id="user-menu-item-{name}-{i}}" + class:disabled={item.disabled} + > + {#if item.icon} + + {/if} + {item.displayName} + + {:else} + + {item.displayName} + + {/if} + {/each} + {/if} + diff --git a/frontend/src/lib/components/common/menu/Menu.svelte b/frontend/src/lib/components/common/menu/Menu.svelte index 7dc5136970..b26da298dd 100644 --- a/frontend/src/lib/components/common/menu/Menu.svelte +++ b/frontend/src/lib/components/common/menu/Menu.svelte @@ -51,7 +51,6 @@
(show = !show)} class="cursor-pointer hover:bg-gray-100/30">
- {#if show}
- {#if !disableInstruction && focusableElements?.length} -
- Use - - and - -
- {/if} {/if} diff --git a/frontend/src/lib/components/flows/pickers/PickHubScript.svelte b/frontend/src/lib/components/flows/pickers/PickHubScript.svelte index 24184570d5..4892712325 100644 --- a/frontend/src/lib/components/flows/pickers/PickHubScript.svelte +++ b/frontend/src/lib/components/flows/pickers/PickHubScript.svelte @@ -26,6 +26,7 @@ loadHubScripts() } }) + const maxItems = 40 x.summary} /> @@ -40,7 +41,7 @@ {:else}