File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
22import AppLogo from ' @/components/AppLogo.vue' ;
33import AppLogoIcon from ' @/components/AppLogoIcon.vue' ;
4+ import { Avatar , AvatarFallback , AvatarImage } from ' @/components/ui/avatar' ;
45import UserMenuContent from ' @/components/UserMenuContent.vue' ;
56import { Button } from ' @/components/ui/button' ;
67import { 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- v-else
168- class =" flex h-7 w-7 items-center justify-center rounded-md bg-primary/10 text-sm font-medium text-primary"
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 >
You can’t perform that action at this time.
0 commit comments