mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-05 23:16:52 +00:00
bugfix:标签颜色
This commit is contained in:
@@ -12,13 +12,9 @@ const TagItem = ({ tag, selected }) => {
|
|||||||
return (
|
return (
|
||||||
<Link href={selected ? '/' : `/tag/${encodeURIComponent(tag.name)}`} passHref>
|
<Link href={selected ? '/' : `/tag/${encodeURIComponent(tag.name)}`} passHref>
|
||||||
<li
|
<li
|
||||||
className={`notion-${tag.color}_background list-none cursor-pointer hover:bg-gray-300 rounded-md
|
className={`notion-${tag.color}_background list-none cursor-pointer rounded-md
|
||||||
duration-200 mr-1 my-1 px-2 py-1 text-sm whitespace-nowrap
|
duration-200 mr-1 my-1 px-2 py-1 text-sm whitespace-nowrap
|
||||||
dark:hover:bg-gray-800 dark:hover:text-white hover:text-black
|
text-gray-600 hover:bg-gray-200 dark:hover:bg-gray-800 dark:hover:text-white`}>
|
||||||
${selected
|
|
||||||
? ' text-white dark:text-white bg-black dark:hover:bg-gray-900 dark:bg-black'
|
|
||||||
: ' text-gray-600'}`}
|
|
||||||
>
|
|
||||||
<a>
|
<a>
|
||||||
{selected && <FontAwesomeIcon icon={faTag} className='mr-1'/>} {`${tag.name} `} {tag.count ? `(${tag.count})` : ''}
|
{selected && <FontAwesomeIcon icon={faTag} className='mr-1'/>} {`${tag.name} `} {tag.count ? `(${tag.count})` : ''}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user