From e51f185dd01ea7de3dfa68e7cabc5561a38561fb Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Fri, 15 Nov 2019 15:25:51 +0700 Subject: [PATCH] fixed text appearance for single cell --- src/components/flow/Cell/index.tsx | 3 +-- src/components/flow/Cell/styles.scss | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/flow/Cell/index.tsx b/src/components/flow/Cell/index.tsx index 03fec93d..4acefc70 100644 --- a/src/components/flow/Cell/index.tsx +++ b/src/components/flow/Cell/index.tsx @@ -104,7 +104,6 @@ const Cell: FC = ({ styles.cell, styles[(flow && flow.display) || "single"] )} - onClick={onClick} ref={ref} > {is_visible && ( @@ -128,7 +127,7 @@ const Cell: FC = ({ )} -
+
{title && !text &&
{title}
} diff --git a/src/components/flow/Cell/styles.scss b/src/components/flow/Cell/styles.scss index 763537d8..2e828993 100644 --- a/src/components/flow/Cell/styles.scss +++ b/src/components/flow/Cell/styles.scss @@ -38,6 +38,9 @@ overflow: hidden; position: relative; + width: 100%; + height: 100%; + p { margin-bottom: $gap; }