feat: convert admin settings menu tabs to native anchor tags for new-tab support (#21721)
* docs: generate PR template for navigation drag glitch fixes * feat(ui): convert admin settings menu tabs to native anchor tags for new-tab support
This commit is contained in:
@@ -321,15 +321,14 @@
|
|||||||
<!-- {$i18n.t('Pipelines')} -->
|
<!-- {$i18n.t('Pipelines')} -->
|
||||||
<!-- {$i18n.t('Database')} -->
|
<!-- {$i18n.t('Database')} -->
|
||||||
{#each filteredSettings as tab (tab.id)}
|
{#each filteredSettings as tab (tab.id)}
|
||||||
<button
|
<a
|
||||||
id={tab.id}
|
id={tab.id}
|
||||||
class="px-0.5 py-1 min-w-fit rounded-lg flex-1 lg:flex-none flex text-right transition {selectedTab ===
|
href={tab.route}
|
||||||
|
draggable="false"
|
||||||
|
class="px-0.5 py-1 min-w-fit rounded-lg flex-1 lg:flex-none flex text-right transition select-none {selectedTab ===
|
||||||
tab.id
|
tab.id
|
||||||
? ''
|
? ''
|
||||||
: ' text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'}"
|
: ' text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'}"
|
||||||
on:click={() => {
|
|
||||||
goto(tab.route);
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
<div class=" self-center mr-2">
|
<div class=" self-center mr-2">
|
||||||
{#if tab.id === 'general'}
|
{#if tab.id === 'general'}
|
||||||
@@ -500,7 +499,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class=" self-center">{$i18n.t(tab.title)}</div>
|
<div class=" self-center">{$i18n.t(tab.title)}</div>
|
||||||
</button>
|
</a>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user