diff --git a/components/AlgoliaSearchModal.js b/components/AlgoliaSearchModal.js index 6554e353..f7bcdeb9 100644 --- a/components/AlgoliaSearchModal.js +++ b/components/AlgoliaSearchModal.js @@ -183,7 +183,7 @@ export default function AlgoliaSearchModal({ cRef }) { } flex flex-col justify-between w-full min-h-[10rem] max-w-xl dark:bg-hexo-black-gray dark:border-gray-800 bg-white dark:bg- p-5 rounded-lg z-50 shadow border hover:border-blue-600 duration-300 transition-all `} >
-
搜索
+
搜索
setActiveIndex(index)} onClick={() => onJumpSearchResult(index)} - className={`cursor-pointer replace my-2 p-2 duration-100 ${activeIndex === index ? 'bg-blue-600 ' : ''}`}> + className={`cursor-pointer replace my-2 p-2 duration-100 ${activeIndex === index ? 'bg-blue-600 dark:bg-yellow-600' : ''}`}> {result.title} @@ -229,7 +229,7 @@ export default function AlgoliaSearchModal({ cRef }) { ))} -
+
{totalHit > 0 && (

@@ -270,7 +270,7 @@ function TagGroups() { key={index} href={`/tag/${encodeURIComponent(tag.name)}`} className={'cursor-pointer inline-block whitespace-nowrap'}> -

+
{tag.name}
{tag.count ? {tag.count} : <>}
@@ -293,7 +293,7 @@ function Pagination(props) {
{Array.from({ length: totalPage }, (_, i) => { const classNames = page === i - ? 'font-bold text-white bg-blue-600 rounded' + ? 'font-bold text-white bg-blue-600 dark:bg-yellow-600 rounded' : 'hover:text-blue-600 hover:font-bold' return (