Modyfikacja navbar

This commit is contained in:
l.gabrysiak 2025-03-01 11:21:26 +01:00
parent 5232708895
commit 02bd168ed7
1 changed files with 3 additions and 3 deletions

View File

@ -115,7 +115,7 @@
</div>
</button>
</Menu>
{:else if $mobile}
{:else if $mobile && $user.role === 'admin'}
<Tooltip content={$i18n.t('Controls')}>
<button
class=" flex cursor-pointer px-2 py-2 rounded-xl hover:bg-gray-50 dark:hover:bg-gray-850 transition"
@ -131,7 +131,7 @@
</Tooltip>
{/if}
{#if !$mobile}
{#if !$mobile && $user.role === 'admin'}
<Tooltip content={$i18n.t('Controls')}>
<button
class=" flex cursor-pointer px-2 py-2 rounded-xl hover:bg-gray-50 dark:hover:bg-gray-850 transition"
@ -164,7 +164,7 @@
</button>
</Tooltip>
{#if $user !== undefined}
{#if $user !== undefined && $user.role === 'admin'}
<UserMenu
className="max-w-[200px]"
role={$user.role}