@@ -35,9 +35,7 @@ const isCurrentRoute = (url: string) => {
3535 return page .url === url ;
3636};
3737
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' : ' ' ));
4139
4240const mainNavItems: NavItem [] = [
4341 {
@@ -134,7 +132,7 @@ const rightNavItems: NavItem[] = [
134132
135133 <div class =" ml-auto flex items-center space-x-2" >
136134 <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" >
138136 <Search class =" size-5 opacity-80 group-hover:opacity-100" />
139137 </Button >
140138
@@ -143,7 +141,7 @@ const rightNavItems: NavItem[] = [
143141 <TooltipProvider :delay-duration =" 0" >
144142 <Tooltip >
145143 <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" >
147145 <a :href =" item.url" target =" _blank" rel =" noopener noreferrer" >
148146 <span class =" sr-only" >{{ item.title }}</span >
149147 <component :is =" item.icon" class =" size-5 opacity-80 group-hover:opacity-100" />
@@ -161,10 +159,14 @@ const rightNavItems: NavItem[] = [
161159
162160 <DropdownMenu >
163161 <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+ >
165167 <Avatar class =" size-8 overflow-hidden rounded-full" >
166168 <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" >
168170 {{ getInitials(auth.user?.name) }}
169171 </AvatarFallback >
170172 </Avatar >
0 commit comments