mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
implement visible scrollbar for tools overflow, add show all toggle
This commit is contained in:
parent
8acc1ab425
commit
ccbc46fbbe
@ -102,7 +102,7 @@
|
|||||||
transition={flyAndScale}
|
transition={flyAndScale}
|
||||||
>
|
>
|
||||||
{#if Object.keys(tools).length > 0}
|
{#if Object.keys(tools).length > 0}
|
||||||
<div class=" max-h-28 overflow-y-auto scrollbar-hidden">
|
<div class="max-h-28 overflow-y-auto scrollbar-thin">
|
||||||
{#each Object.keys(tools) as toolId}
|
{#each Object.keys(tools) as toolId}
|
||||||
<button
|
<button
|
||||||
class="flex w-full justify-between gap-2 items-center px-3 py-2 text-sm font-medium cursor-pointer rounded-xl"
|
class="flex w-full justify-between gap-2 items-center px-3 py-2 text-sm font-medium cursor-pointer rounded-xl"
|
||||||
@ -141,6 +141,17 @@
|
|||||||
</button>
|
</button>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
<button
|
||||||
|
class="flex w-full justify-center px-3 py-2 text-sm font-medium cursor-pointer rounded-xl hover:bg-gray-50 dark:hover:bg-gray-800"
|
||||||
|
on:click={() => {
|
||||||
|
const element = document.querySelector('.max-h-28');
|
||||||
|
if (element) {
|
||||||
|
element.classList.remove('max-h-28');
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
^
|
||||||
|
</button>
|
||||||
|
|
||||||
<hr class="border-black/5 dark:border-white/5 my-1" />
|
<hr class="border-black/5 dark:border-white/5 my-1" />
|
||||||
{/if}
|
{/if}
|
||||||
|
Loading…
Reference in New Issue
Block a user