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 1
1
<script setup lang="ts">
2
2
import AppLogo from ' @/components/AppLogo.vue' ;
3
3
import AppLogoIcon from ' @/components/AppLogoIcon.vue' ;
4
+ import { Avatar , AvatarFallback , AvatarImage } from ' @/components/ui/avatar' ;
4
5
import UserMenuContent from ' @/components/UserMenuContent.vue' ;
5
6
import { Button } from ' @/components/ui/button' ;
6
7
import { DropdownMenu , DropdownMenuContent , DropdownMenuTrigger } from ' @/components/ui/dropdown-menu' ;
@@ -161,15 +162,12 @@ const rightNavItems: NavItem[] = [
161
162
<DropdownMenu >
162
163
<DropdownMenuTrigger :as-child =" true" >
163
164
<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" >
170
168
{{ getInitials(auth.user?.name) }}
171
- </span >
172
- </span >
169
+ </AvatarFallback >
170
+ </Avatar >
173
171
<ChevronDown class =" ml-auto mr-1 size-4" />
174
172
</Button >
175
173
</DropdownMenuTrigger >
You can’t perform that action at this time.
0 commit comments