This commit is contained in:
Timothy Jaeryang Baek
2026-04-01 07:14:18 -05:00
parent a28ea36657
commit 07262fa62c

View File

@@ -250,27 +250,6 @@
</a>
{/if}
<button
class="flex rounded-xl py-1.5 px-3 w-full hover:bg-gray-50 dark:hover:bg-gray-800 transition cursor-pointer select-none"
type="button"
on:click={async () => {
show = false;
dispatch('show', 'archived-chat');
if ($mobile) {
await tick();
showSidebar.set(false);
}
}}
>
<div class=" self-center mr-3">
<ArchiveBox className="size-5" strokeWidth="1.5" />
</div>
<div class=" self-center truncate">{$i18n.t('Archived Chats')}</div>
</button>
{#if role === 'admin'}
<a
href="/playground"
@@ -294,6 +273,30 @@
</div>
<div class=" self-center truncate">{$i18n.t('Playground')}</div>
</a>
{/if}
<button
class="flex rounded-xl py-1.5 px-3 w-full hover:bg-gray-50 dark:hover:bg-gray-800 transition cursor-pointer select-none"
type="button"
on:click={async () => {
show = false;
dispatch('show', 'archived-chat');
if ($mobile) {
await tick();
showSidebar.set(false);
}
}}
>
<div class=" self-center mr-3">
<ArchiveBox className="size-5" strokeWidth="1.5" />
</div>
<div class=" self-center truncate">{$i18n.t('Archived Chats')}</div>
</button>
{#if role === 'admin'}
<a
href="/admin"
draggable="false"