@@ -821,45 +821,71 @@ const showSkeleton = shallowRef(false)
821821 class =" self-baseline"
822822 />
823823
824- <!-- Package likes -->
825- <TooltipApp
826- :text ="
827- isLoadingLikeData
828- ? $t('common.loading')
829- : likesData?.userHasLiked
830- ? $t('package.likes.unlike')
831- : $t('package.likes.like')
832- "
833- position =" bottom"
834- class =" items-center"
835- strategy =" fixed"
836- >
837- <ButtonBase
838- @click =" likeAction"
839- size =" small"
840- :title ="
841- likesData?.userHasLiked ? $t('package.likes.unlike') : $t('package.likes.like')
842- "
843- :aria-label ="
844- likesData?.userHasLiked ? $t('package.likes.unlike') : $t('package.likes.like')
824+ <div class =" flex gap-1.5" >
825+ <!-- Package likes -->
826+ <TooltipApp
827+ :text ="
828+ isLoadingLikeData
829+ ? $t('common.loading')
830+ : likesData?.userHasLiked
831+ ? $t('package.likes.unlike')
832+ : $t('package.likes.like')
845833 "
846- :aria-pressed =" likesData?.userHasLiked"
847- :classicon ="
848- likesData?.userHasLiked
849- ? 'i-lucide:heart-minus text-red-500'
850- : 'i-lucide:heart-plus'
834+ position =" bottom"
835+ class =" items-center"
836+ strategy =" fixed"
837+ >
838+ <ButtonBase
839+ @click =" likeAction"
840+ size =" small"
841+ :title ="
842+ likesData?.userHasLiked ? $t('package.likes.unlike') : $t('package.likes.like')
843+ "
844+ :aria-label ="
845+ likesData?.userHasLiked ? $t('package.likes.unlike') : $t('package.likes.like')
846+ "
847+ :aria-pressed =" likesData?.userHasLiked"
848+ :classicon ="
849+ likesData?.userHasLiked
850+ ? 'i-lucide:heart-minus text-red-500'
851+ : 'i-lucide:heart-plus'
852+ "
853+ >
854+ <span
855+ v-if =" isLoadingLikeData"
856+ class =" i-svg-spinners:ring-resize w-3 h-3 my-0.5"
857+ aria-hidden =" true"
858+ />
859+ <span v-else >
860+ {{ compactNumberFormatter.format(likesData?.totalLikes ?? 0) }}
861+ </span >
862+ </ButtonBase >
863+ </TooltipApp >
864+
865+ <TooltipApp
866+ v-if =" isGitHubRepo && isGitHubConnected"
867+ :text ="
868+ isStarred ? $t('package.github_star.unstar') : $t('package.github_star.star')
851869 "
870+ position =" bottom"
871+ strategy =" fixed"
852872 >
853- <span
854- v-if =" isLoadingLikeData"
855- class =" i-svg-spinners:ring-resize w-3 h-3 my-0.5"
856- aria-hidden =" true"
857- />
858- <span v-else >
859- {{ compactNumberFormatter.format(likesData?.totalLikes ?? 0) }}
860- </span >
861- </ButtonBase >
862- </TooltipApp >
873+ <ButtonBase
874+ @click =" toggleStar"
875+ size =" small"
876+ :title ="
877+ isStarred ? $t('package.github_star.unstar') : $t('package.github_star.star')
878+ "
879+ :aria-label ="
880+ isStarred ? $t('package.github_star.unstar') : $t('package.github_star.star')
881+ "
882+ :aria-pressed =" isStarred"
883+ :disabled =" isStarActionPending"
884+ :classicon =" isStarred ? 'i-lucide:star text-yellow-400' : 'i-lucide:star'"
885+ >
886+ </ButtonBase >
887+ </TooltipApp >
888+ </div >
863889 </div >
864890 </div >
865891 </header >
@@ -890,31 +916,7 @@ const showSkeleton = shallowRef(false)
890916 </LinkBase >
891917 </li >
892918 <li v-if =" repositoryUrl && repoMeta && starsLink" >
893- <TooltipApp
894- v-if =" isGitHubRepo && isGitHubConnected"
895- :text ="
896- isStarred ? $t('package.github_star.unstar') : $t('package.github_star.star')
897- "
898- position =" bottom"
899- strategy =" fixed"
900- >
901- <ButtonBase
902- size =" small"
903- :title ="
904- isStarred ? $t('package.github_star.unstar') : $t('package.github_star.star')
905- "
906- :aria-label ="
907- isStarred ? $t('package.github_star.unstar') : $t('package.github_star.star')
908- "
909- :aria-pressed =" isStarred"
910- :disabled =" isStarActionPending"
911- :classicon =" isStarred ? 'i-lucide:star text-yellow-400' : 'i-lucide:star'"
912- @click =" toggleStar"
913- >
914- {{ compactNumberFormatter.format(stars) }}
915- </ButtonBase >
916- </TooltipApp >
917- <LinkBase v-else :to =" starsLink" classicon =" i-lucide:star" >
919+ <LinkBase :to =" starsLink" classicon =" i-lucide:star" >
918920 {{ compactNumberFormatter.format(stars) }}
919921 </LinkBase >
920922 </li >
0 commit comments