From 531b9e3d643fb7a109529bf72ac57277413d5382 Mon Sep 17 00:00:00 2001 From: Kunal Vishwakarma <116634168+kunalv17@users.noreply.github.com> Date: Thu, 30 Mar 2023 12:09:42 +0530 Subject: [PATCH] style: fixed height issue in module card (#599) --- .../components/modules/single-module-card.tsx | 19 +++++++++++-------- .../projects/[projectId]/modules/index.tsx | 2 +- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/apps/app/components/modules/single-module-card.tsx b/apps/app/components/modules/single-module-card.tsx index 85188dd6b..cf7cbaeff 100644 --- a/apps/app/components/modules/single-module-card.tsx +++ b/apps/app/components/modules/single-module-card.tsx @@ -191,7 +191,7 @@ export const SingleModuleCard: React.FC = ({ module, handleEditModule }) -
+
Progress
@@ -204,16 +204,19 @@ export const SingleModuleCard: React.FC = ({ module, handleEditModule })
{isNaN(completionPercentage) ? 0 : completionPercentage.toFixed(0)}%
-
+

Last updated: - - {renderShortDateWithYearFormat(lastUpdated)} - + + {renderShortDateWithYearFormat(lastUpdated)} +

-
- -
+ { + module.members_detail.length>0 && +
+ +
+ }
diff --git a/apps/app/pages/[workspaceSlug]/projects/[projectId]/modules/index.tsx b/apps/app/pages/[workspaceSlug]/projects/[projectId]/modules/index.tsx index 5b7c10f6b..dd4dfb23f 100644 --- a/apps/app/pages/[workspaceSlug]/projects/[projectId]/modules/index.tsx +++ b/apps/app/pages/[workspaceSlug]/projects/[projectId]/modules/index.tsx @@ -95,7 +95,7 @@ const ProjectModules: NextPage = (props) => {

Modules

-
+
{modules.map((module) => (