Skip to content

Commit fe5fc7b

Browse files
committed
fix: show only warning icon in collapsed sidebar
1 parent d8e868b commit fe5fc7b

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

‎adminforth/spa/src/components/Sidebar.vue‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,15 @@
5252
</div>
5353
</div>
5454

55-
<div v-if="coreStore?.config?.defaultUserExists && !isLocalhost" class="p-4 mb-4 text-white rounded-lg bg-red-700/80 fill-white text-sm">
56-
<IconExclamationCircleOutline class="inline-block align-text-bottom mr-0,5 w-5 h-5" />
57-
{{ $t('Default user') }} <strong>"adminforth"</strong> {{ $t('detected. Delete it and create your own account.') }}
55+
<div
56+
v-if="coreStore?.config?.defaultUserExists && !isLocalhost"
57+
class="mb-4 text-white rounded-lg bg-red-700/80 fill-white text-sm"
58+
:class="iconOnlySidebarEnabled && isSidebarIconOnly && !isSidebarHovering ? 'flex h-10 items-center justify-center' : 'p-4'"
59+
>
60+
<IconExclamationCircleOutline class="inline-block align-text-bottom w-5 h-5 shrink-0" />
61+
<template v-if="!iconOnlySidebarEnabled || !isSidebarIconOnly || isSidebarHovering">
62+
{{ $t('Default user') }} <strong>"adminforth"</strong> {{ $t('detected. Delete it and create your own account.') }}
63+
</template>
5864
</div>
5965

6066
<ul class="af-sidebar-container space-y-2 font-medium" >

0 commit comments

Comments
 (0)