Skip to content

Commit 814e4f3

Browse files
committed
fix conflicts
2 parents f1bdb3e + 10f82ea commit 814e4f3

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

resources/js/components/AppHeader.vue

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script setup lang="ts">
22
import AppLogo from '@/components/AppLogo.vue';
33
import AppLogoIcon from '@/components/AppLogoIcon.vue';
4+
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
45
import UserMenuContent from '@/components/UserMenuContent.vue';
56
import { Button } from '@/components/ui/button';
67
import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger } from '@/components/ui/dropdown-menu';
@@ -161,15 +162,12 @@ const rightNavItems: NavItem[] = [
161162
<DropdownMenu>
162163
<DropdownMenuTrigger :as-child="true">
163164
<Button variant="ghost" size="icon" class="relative h-9 w-auto rounded-md px-1">
164-
<span>
165-
<img v-if="auth.user?.avatar" :src="auth.user.avatar" :alt="auth.user.name" class="h-8 w-8 rounded-lg" />
166-
<span
167-
class="flex h-7 w-7 items-center justify-center rounded-md bg-primary/10 text-sm font-medium text-primary"
168-
v-else
169-
>
165+
<Avatar className="h-7 w-7 overflow-hidden rounded-lg">
166+
<AvatarImage :src="auth.user.avatar" :alt="auth.user.name" />
167+
<AvatarFallback class="rounded-lg bg-neutral-200 text-black dark:bg-neutral-700 dark:text-white">
170168
{{ getInitials(auth.user?.name) }}
171-
</span>
172-
</span>
169+
</AvatarFallback>
170+
</Avatar>
173171
<ChevronDown class="ml-auto mr-1 size-4" />
174172
</Button>
175173
</DropdownMenuTrigger>

0 commit comments

Comments
 (0)