mirror of
https://github.com/open-webui/open-webui
synced 2025-06-23 02:16:52 +00:00
refac
This commit is contained in:
parent
7969d8e8f3
commit
9cbe39718d
@ -45,10 +45,15 @@
|
|||||||
align="end"
|
align="end"
|
||||||
transition={flyAndScale}
|
transition={flyAndScale}
|
||||||
>
|
>
|
||||||
<DropdownMenu.Item
|
<button
|
||||||
|
type="button"
|
||||||
class="flex rounded-md py-1.5 px-3 w-full hover:bg-gray-50 dark:hover:bg-gray-800 transition items-center gap-2"
|
class="flex rounded-md py-1.5 px-3 w-full hover:bg-gray-50 dark:hover:bg-gray-800 transition items-center gap-2"
|
||||||
on:click={(e) => {
|
on:click={(e) => {
|
||||||
|
e.stopPropagation();
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
toggleSidebarHandler();
|
toggleSidebarHandler();
|
||||||
|
show = false;
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{#if ($pinnedModels ?? []).includes(model?.id)}
|
{#if ($pinnedModels ?? []).includes(model?.id)}
|
||||||
@ -64,17 +69,22 @@
|
|||||||
{$i18n.t('Keep in Sidebar')}
|
{$i18n.t('Keep in Sidebar')}
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</DropdownMenu.Item>
|
</button>
|
||||||
|
|
||||||
<DropdownMenu.Item
|
<button
|
||||||
|
type="button"
|
||||||
class="flex rounded-md py-1.5 px-3 w-full hover:bg-gray-50 dark:hover:bg-gray-800 transition items-center gap-2"
|
class="flex rounded-md py-1.5 px-3 w-full hover:bg-gray-50 dark:hover:bg-gray-800 transition items-center gap-2"
|
||||||
on:click={() => {
|
on:click={(e) => {
|
||||||
|
e.stopPropagation();
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
copyLinkHandler();
|
copyLinkHandler();
|
||||||
|
show = false;
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Link />
|
<Link />
|
||||||
|
|
||||||
<div class="flex items-center">{$i18n.t('Copy Link')}</div>
|
<div class="flex items-center">{$i18n.t('Copy Link')}</div>
|
||||||
</DropdownMenu.Item>
|
</button>
|
||||||
</DropdownMenu.Content>
|
</DropdownMenu.Content>
|
||||||
</DropdownMenu.Root>
|
</DropdownMenu.Root>
|
||||||
|
Loading…
Reference in New Issue
Block a user