This commit is contained in:
Timothy Jaeryang Baek 2025-06-09 01:14:40 +04:00
parent 7969d8e8f3
commit 9cbe39718d

View File

@ -45,10 +45,15 @@
align="end"
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"
on:click={(e) => {
e.stopPropagation();
e.preventDefault();
toggleSidebarHandler();
show = false;
}}
>
{#if ($pinnedModels ?? []).includes(model?.id)}
@ -64,17 +69,22 @@
{$i18n.t('Keep in Sidebar')}
{/if}
</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"
on:click={() => {
on:click={(e) => {
e.stopPropagation();
e.preventDefault();
copyLinkHandler();
show = false;
}}
>
<Link />
<div class="flex items-center">{$i18n.t('Copy Link')}</div>
</DropdownMenu.Item>
</button>
</DropdownMenu.Content>
</DropdownMenu.Root>