调整Header,平滑滚动
This commit is contained in:
tangly1024
2021-12-23 11:16:20 +08:00
parent 50f67b027e
commit b961a597cb
7 changed files with 46 additions and 26 deletions

View File

@@ -34,7 +34,7 @@ const LatestPostsGroup = ({ posts, sliceCount = 5 }) => {
<Link key={post.id} title={post.title} href={`${BLOG.path}/article/${post.slug}`} passHref>
<a className={(selected ? 'text-white bg-blue-600 ' : 'text-gray-500 dark:text-gray-300 ') + ' my-1 px-5 flex font-light justify-between'}>
<div className={ 'text-xs py-1.5 flex 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 truncate' }>
<FontAwesomeIcon icon={faFileAlt} className='mr-2'/>
{post.title}
</div>