1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

showing ellipsis if no title

This commit is contained in:
Fedor Katurov 2020-07-13 15:11:30 +07:00
parent bb93c558fc
commit 02ebc3932e
2 changed files with 2 additions and 2 deletions

View file

@ -134,7 +134,7 @@ const Cell: FC<IProps> = ({
<Link className={classNames(styles.face)} to={`/post${id}`}>
<div className={styles.face_content}>
{title && !text && <div className={styles.title}>{title}</div>}
{!text && <div className={styles.title}>{title || '...'}</div>}
{!!text && !!thumbnail && (
<div className={styles.text}>

View file

@ -20,7 +20,7 @@ const FlowRecentItem: FC<IProps> = ({ node, has_new }) => {
</div>
<div className={styles.info}>
<div className={styles.title}>{node.title}</div>
<div className={styles.title}>{node.title || '...'}</div>
<div className={styles.comment}>{getPrettyDate(node.created_at)}</div>
</div>
</Link>