From 48912988915ae40606a900a6f1dd23fc25ed567f Mon Sep 17 00:00:00 2001 From: sct Date: Mon, 21 Dec 2020 15:45:55 +0900 Subject: [PATCH] fix(frontend): adjust person card layout to deal with overflowing content fixes #416 --- src/components/PersonCard/index.tsx | 30 +++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/src/components/PersonCard/index.tsx b/src/components/PersonCard/index.tsx index 54d5f656..592ab445 100644 --- a/src/components/PersonCard/index.tsx +++ b/src/components/PersonCard/index.tsx @@ -25,18 +25,19 @@ const PersonCard: React.FC = ({ } bg-gray-600 rounded-lg text-white shadow-lg hover:bg-gray-500 transition ease-in-out duration-150 cursor-pointer`} >
-
+
{profilePath && ( -
+
+ +
)} {!profilePath && ( = ({ /> )} -
{name}
+
{name}
{subName && ( -
+
{subName}
)} +