@@ -35,9 +35,7 @@ const isCurrentRoute = (url: string) => {
35
35
return page .url === url ;
36
36
};
37
37
38
- const activeItemStyles = computed (
39
- () => (url : string ) => (isCurrentRoute (url ) ? ' text-neutral-900 dark:bg-neutral-800 dark:text-neutral-100' : ' ' ),
40
- );
38
+ const activeItemStyles = computed (() => (url : string ) => (isCurrentRoute (url ) ? ' text-neutral-900 dark:bg-neutral-800 dark:text-neutral-100' : ' ' ));
41
39
42
40
const mainNavItems: NavItem [] = [
43
41
{
@@ -134,7 +132,7 @@ const rightNavItems: NavItem[] = [
134
132
135
133
<div class =" ml-auto flex items-center space-x-2" >
136
134
<div class =" relative flex items-center space-x-1" >
137
- <Button variant =" ghost" size =" icon" class =" h-9 w-9 cursor-pointer group " >
135
+ <Button variant =" ghost" size =" icon" class =" group h-9 w-9 cursor-pointer" >
138
136
<Search class =" size-5 opacity-80 group-hover:opacity-100" />
139
137
</Button >
140
138
@@ -143,7 +141,7 @@ const rightNavItems: NavItem[] = [
143
141
<TooltipProvider :delay-duration =" 0" >
144
142
<Tooltip >
145
143
<TooltipTrigger >
146
- <Button variant =" ghost" size =" icon" as-child class =" h-9 w-9 group cursor-pointer" >
144
+ <Button variant =" ghost" size =" icon" as-child class =" group h-9 w-9 cursor-pointer" >
147
145
<a :href =" item.url" target =" _blank" rel =" noopener noreferrer" >
148
146
<span class =" sr-only" >{{ item.title }}</span >
149
147
<component :is =" item.icon" class =" size-5 opacity-80 group-hover:opacity-100" />
@@ -161,10 +159,14 @@ const rightNavItems: NavItem[] = [
161
159
162
160
<DropdownMenu >
163
161
<DropdownMenuTrigger :as-child =" true" >
164
- <Button variant =" ghost" size =" icon" class =" relative size-10 w-auto rounded-full p-1 focus-within:ring-primary focus-within:ring-2" >
162
+ <Button
163
+ variant =" ghost"
164
+ size =" icon"
165
+ class =" relative size-10 w-auto rounded-full p-1 focus-within:ring-2 focus-within:ring-primary"
166
+ >
165
167
<Avatar class =" size-8 overflow-hidden rounded-full" >
166
168
<AvatarImage :src =" auth.user.avatar" :alt =" auth.user.name" />
167
- <AvatarFallback class =" rounded-lg bg-neutral-200 text-black font-semibold dark:bg-neutral-700 dark:text-white" >
169
+ <AvatarFallback class =" rounded-lg bg-neutral-200 font-semibold text-black dark:bg-neutral-700 dark:text-white" >
168
170
{{ getInitials(auth.user?.name) }}
169
171
</AvatarFallback >
170
172
</Avatar >
0 commit comments