mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-20 23:16:49 +00:00
💅 微调颜色比例,固定夜间模式按钮
This commit is contained in:
@@ -9,9 +9,9 @@ const DarkModeButton = () => {
|
||||
localStorage.setItem('theme', newTheme)
|
||||
}
|
||||
return <div onClick={handleChangeDarkMode}
|
||||
className=' justify-center align-middle font-bold text-xl rounded cursor-pointer text-gray-600 hover:scale-125 transform duration-200
|
||||
dark:bg-gray-600 dark:text-gray-300 dark:hover:bg-gray-100 dark:hover:text-black'>
|
||||
<span className={'fa px-1 ' + (theme === 'dark' ? ' fa-sun-o' : ' fa-moon-o')} />
|
||||
className=' justify-center align-middle font-bold text-xl cursor-pointer hover:scale-125 transform duration-200
|
||||
dark:text-gray-300 dark:hover:bg-gray-100 dark:hover:text-black'>
|
||||
<i className={'fa px-1 ' + (theme === 'dark' ? ' fa-sun-o' : ' fa-moon-o')} />
|
||||
</div>
|
||||
}
|
||||
export default DarkModeButton
|
||||
|
||||
Reference in New Issue
Block a user