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" 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>