Skip to content

Commit

Permalink
fix algolia ui
Browse files Browse the repository at this point in the history
  • Loading branch information
tangly1024 committed Jul 30, 2023
1 parent 6937b68 commit 5cce8c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/AlgoliaSearchModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default function AlgoliaSearchModal({ cRef }) {
</div>

<input type="text" placeholder="在这里输入搜索关键词..." onChange={(e) => handleInputChange(e)}
className="bg-gray-50 dark:bg-gray-600 outline-blue-500 w-full px-4 my-2 py-1 mb-4 border rounded-md" />
className="text-black dark:text-gray-200 bg-gray-50 dark:bg-gray-600 outline-blue-500 w-full px-4 my-2 py-1 mb-4 border rounded-md" />

{/* 标签组 */}
<div className='mb-4'>
Expand All @@ -123,7 +123,7 @@ export default function AlgoliaSearchModal({ cRef }) {
<ul>
{searchResults.map((result) => (
<li key={result.objectID} className="replace my-2">
<a href={`${BLOG.SUB_PATH}/${result.slug}`} className="font-bold hover:text-blue-600 ">
<a href={`${BLOG.SUB_PATH}/${result.slug}`} className="font-bold hover:text-blue-600 text-black dark:text-gray-200">
{result.title}
</a>
</li>
Expand Down

0 comments on commit 5cce8c5

Please sign in to comment.