mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-02 15:10:16 +00:00
Update LatestPostsGroup.js
bugfix: 颜色异常
This commit is contained in:
@@ -33,7 +33,7 @@ const LatestPostsGroup = ({ posts, sliceCount = 5 }) => {
|
|||||||
<Link key={post.id} title={post.title} href={`${BLOG.path}/article/${post.slug}`} passHref>
|
<Link key={post.id} title={post.title} href={`${BLOG.path}/article/${post.slug}`} passHref>
|
||||||
<a className={(selected ? 'bg-gray-200 dark:bg-black ' : '') + ' my-1 px-5 flex font-light justify-between'}>
|
<a className={(selected ? 'bg-gray-200 dark:bg-black ' : '') + ' my-1 px-5 flex font-light justify-between'}>
|
||||||
<div className={ 'text-xs py-1 flex w-40 overflow-x-hidden whitespace-nowrap overflow-hidden ' +
|
<div className={ 'text-xs py-1 flex w-40 overflow-x-hidden whitespace-nowrap overflow-hidden ' +
|
||||||
'hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer hover:underline' +
|
'hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer hover:underline ' +
|
||||||
(selected ? 'dark:text-white text-black ' : 'text-gray-500 dark:text-gray-300')
|
(selected ? 'dark:text-white text-black ' : 'text-gray-500 dark:text-gray-300')
|
||||||
}>
|
}>
|
||||||
{post.title}
|
{post.title}
|
||||||
|
|||||||
Reference in New Issue
Block a user