分类图标微调;
推荐文章顶边距;
获取文章ID空判断;
This commit is contained in:
tangly1024
2021-12-14 11:07:35 +08:00
parent cfa2fd1c42
commit 6ea5c38c73

View File

@@ -13,7 +13,7 @@ const CategoryGroup = ({ currentCategory, categories }) => {
? 'bg-gray-200 dark:bg-black text-black dark:text-white'
: 'dark:text-gray-400 text-gray-500') +
' duration-300 hover:text-blue-500 dark:hover:text-blue-400 hover:underline px-5 cursor-pointer pt-2 font-light'}>
<FontAwesomeIcon icon={selected ? faFolderOpen : faFolder} className={`${selected ? 'text-black dark:text-white' : 'text-gray-400'} mr-2 w-5`} />{category}({categories[category]})</div>
<FontAwesomeIcon icon={selected ? faFolderOpen : faFolder} className={`${selected ? 'text-black dark:text-white' : 'text-gray-400'} mr-2`} />{category}({categories[category]})</div>
</Link>
})}
</div>