From 02ebc3932ecc23c96e1c25a434a9a195b63afba7 Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Mon, 13 Jul 2020 15:11:30 +0700 Subject: [PATCH] showing ellipsis if no title --- src/components/flow/Cell/index.tsx | 2 +- src/components/flow/FlowRecentItem/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/flow/Cell/index.tsx b/src/components/flow/Cell/index.tsx index b52d0b16..07b5a323 100644 --- a/src/components/flow/Cell/index.tsx +++ b/src/components/flow/Cell/index.tsx @@ -134,7 +134,7 @@ const Cell: FC = ({
- {title && !text &&
{title}
} + {!text &&
{title || '...'}
} {!!text && !!thumbnail && (
diff --git a/src/components/flow/FlowRecentItem/index.tsx b/src/components/flow/FlowRecentItem/index.tsx index f4a17ef1..471718e2 100644 --- a/src/components/flow/FlowRecentItem/index.tsx +++ b/src/components/flow/FlowRecentItem/index.tsx @@ -20,7 +20,7 @@ const FlowRecentItem: FC = ({ node, has_new }) => {
-
{node.title}
+
{node.title || '...'}
{getPrettyDate(node.created_at)}