feature: LatestPosts truncate

This commit is contained in:
tangly1024
2022-01-02 10:34:06 +08:00
parent ca06994d50
commit b06b72983f

View File

@@ -36,7 +36,7 @@ const LatestPostsGroup = ({ posts, sliceCount = 5 }) => {
<div className={ (selected ? 'text-white bg-gray-600 ' : 'text-gray-500 dark:text-gray-400 ') + ' text-xs py-1.5 flex overflow-x-hidden whitespace-nowrap hover:bg-gray-500 px-3 w-full ' +
'hover:text-white dark:hover:text-white cursor-pointer' }>
<FontAwesomeIcon icon={faFileAlt} className='mr-2'/>
{post.title}
<div className='truncate'>{post.title}</div>
</div>
</a>
</Link>