fix: regression for "open in new tab"

This commit is contained in:
Silentoplayz 2025-06-16 23:27:16 -04:00
parent 340d9820b8
commit 354dd3caa9

View File

@ -107,39 +107,41 @@
</button> </button>
{#if role === 'admin'} {#if role === 'admin'}
<button <a
class="flex rounded-md py-1.5 px-3 w-full hover:bg-gray-50 dark:hover:bg-gray-800 transition" href="/playground"
class="flex rounded-md py-1.5 px-3 w-full hover:bg-gray-50 dark:hover:bg-gray-800 transition select-none"
on:click={() => { on:click={() => {
goto('/playground');
show = false; show = false;
if ($mobile) { if ($mobile) {
showSidebar.set(false); showSidebar.set(false);
} }
}} }}
rel="noopener noreferrer"
draggable="false"
> >
<div class=" self-center mr-3"> <div class=" self-center mr-3">
<Code className="size-5" strokeWidth="1.5" /> <Code className="size-5" strokeWidth="1.5" />
</div> </div>
<div class=" self-center truncate">{$i18n.t('Playground')}</div> <div class=" self-center truncate">{$i18n.t('Playground')}</div>
</button> </a>
<button <a
class="flex rounded-md py-1.5 px-3 w-full hover:bg-gray-50 dark:hover:bg-gray-800 transition" href="/admin"
class="flex rounded-md py-1.5 px-3 w-full hover:bg-gray-50 dark:hover:bg-gray-800 transition select-none"
on:click={() => { on:click={() => {
goto('/admin');
show = false; show = false;
if ($mobile) { if ($mobile) {
showSidebar.set(false); showSidebar.set(false);
} }
}} }}
rel="noopener noreferrer"
draggable="false"
> >
<div class=" self-center mr-3"> <div class=" self-center mr-3">
<UserGroup className="w-5 h-5" strokeWidth="1.5" /> <UserGroup className="w-5 h-5" strokeWidth="1.5" />
</div> </div>
<div class=" self-center truncate">{$i18n.t('Admin Panel')}</div> <div class=" self-center truncate">{$i18n.t('Admin Panel')}</div>
</button> </a>
{/if} {/if}
{#if help} {#if help}