mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
showing ellipsis if no title
This commit is contained in:
parent
bb93c558fc
commit
02ebc3932e
2 changed files with 2 additions and 2 deletions
|
@ -134,7 +134,7 @@ const Cell: FC<IProps> = ({
|
||||||
|
|
||||||
<Link className={classNames(styles.face)} to={`/post${id}`}>
|
<Link className={classNames(styles.face)} to={`/post${id}`}>
|
||||||
<div className={styles.face_content}>
|
<div className={styles.face_content}>
|
||||||
{title && !text && <div className={styles.title}>{title}</div>}
|
{!text && <div className={styles.title}>{title || '...'}</div>}
|
||||||
|
|
||||||
{!!text && !!thumbnail && (
|
{!!text && !!thumbnail && (
|
||||||
<div className={styles.text}>
|
<div className={styles.text}>
|
||||||
|
|
|
@ -20,7 +20,7 @@ const FlowRecentItem: FC<IProps> = ({ node, has_new }) => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={styles.info}>
|
<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 className={styles.comment}>{getPrettyDate(node.created_at)}</div>
|
||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue