mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-02 07:26:45 +00:00
Merge pull request #2215 from tangly1024/feat/theme-game
theme-game fix category style
This commit is contained in:
@@ -10,7 +10,7 @@ function GroupCategory({ currentCategory, categoryOptions }) {
|
|||||||
<Link className='mx-2' href='/category'>
|
<Link className='mx-2' href='/category'>
|
||||||
<i className='fas fa-bars' />
|
<i className='fas fa-bars' />
|
||||||
</Link>
|
</Link>
|
||||||
<div id='category-list' className='dark:border-gray-600 flex py-1'>
|
<div id='category-list' className='dark:border-gray-600 flex flex-wrap py-1'>
|
||||||
{categoryOptions.map(category => {
|
{categoryOptions.map(category => {
|
||||||
const selected = currentCategory === category.name
|
const selected = currentCategory === category.name
|
||||||
return (
|
return (
|
||||||
@@ -22,7 +22,7 @@ function GroupCategory({ currentCategory, categoryOptions }) {
|
|||||||
selected
|
selected
|
||||||
? 'bg-green-500 text-white '
|
? 'bg-green-500 text-white '
|
||||||
: 'dark:text-gray-300 hover:bg-green-500 rounded-lg hover:text-white'
|
: 'dark:text-gray-300 hover:bg-green-500 rounded-lg hover:text-white'
|
||||||
} whitespace-nowrap overflow-ellipsis w-full items-center px-2 cursor-pointer py-1 font-bold`}>
|
} whitespace-nowrap overflow-ellipsis items-center px-2 cursor-pointer py-1 font-bold`}>
|
||||||
{/* <i
|
{/* <i
|
||||||
className={`${selected ? 'text-white fa-folder-open' : 'fa-folder text-gray-400'} fas mr-2`}
|
className={`${selected ? 'text-white fa-folder-open' : 'fa-folder text-gray-400'} fas mr-2`}
|
||||||
/> */}
|
/> */}
|
||||||
|
|||||||
Reference in New Issue
Block a user