From d76a9a46283579db42a9cb06a6b4bd3e53de1a15 Mon Sep 17 00:00:00 2001 From: prafull-opensignlabs Date: Tue, 22 Oct 2024 17:36:01 +0530 Subject: [PATCH] fix: report UI --- .../src/primitives/GetReportDisplay.js | 52 ++++++++++--------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/apps/OpenSign/src/primitives/GetReportDisplay.js b/apps/OpenSign/src/primitives/GetReportDisplay.js index c56828e94..ee45ae977 100644 --- a/apps/OpenSign/src/primitives/GetReportDisplay.js +++ b/apps/OpenSign/src/primitives/GetReportDisplay.js @@ -1226,13 +1226,15 @@ const ReportTable = (props) => { )}
0 - ? "min-h-[317px]" - : currentList?.length === props.docPerPage - ? "h-fit" - : "h-screen" - } overflow-auto w-full border-b`} + className={`overflow-auto w-full border-b ${ + props.List?.length > 0 + ? isDashboard + ? "min-h-[317px]" + : currentList?.length === props.docPerPage + ? "h-fit" + : "h-screen" + : "" + }`} > @@ -2140,6 +2142,24 @@ const ReportTable = (props) => { )}
+ {props.List?.length <= 0 && ( +
+
+ img +
+
+ {t("no-data-avaliable")} +
+
+ )}
{props.List.length > props.docPerPage && ( @@ -2171,24 +2191,6 @@ const ReportTable = (props) => { )}
- {props.List?.length <= 0 && ( -
-
- img -
-
- {t("no-data-avaliable")} -
-
- )}