Skip to content

Commit 1e13b50

Browse files
authored
Merge pull request #1372 from OpenSignLabs/validation
fix: report UI
2 parents f70e204 + d76a9a4 commit 1e13b50

File tree

1 file changed

+27
-25
lines changed

1 file changed

+27
-25
lines changed

apps/OpenSign/src/primitives/GetReportDisplay.js

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,13 +1226,15 @@ const ReportTable = (props) => {
12261226
)}
12271227
</div>
12281228
<div
1229-
className={`${
1230-
isDashboard && props.List?.length > 0
1231-
? "min-h-[317px]"
1232-
: currentList?.length === props.docPerPage
1233-
? "h-fit"
1234-
: "h-screen"
1235-
} overflow-auto w-full border-b`}
1229+
className={`overflow-auto w-full border-b ${
1230+
props.List?.length > 0
1231+
? isDashboard
1232+
? "min-h-[317px]"
1233+
: currentList?.length === props.docPerPage
1234+
? "h-fit"
1235+
: "h-screen"
1236+
: ""
1237+
}`}
12361238
>
12371239
<table className="op-table border-collapse w-full mb-4">
12381240
<thead className="text-[14px]">
@@ -2140,6 +2142,24 @@ const ReportTable = (props) => {
21402142
)}
21412143
</tbody>
21422144
</table>
2145+
{props.List?.length <= 0 && (
2146+
<div
2147+
className={`${
2148+
isDashboard ? "h-[317px]" : ""
2149+
} flex flex-col items-center justify-center w-ful bg-base-100 text-base-content rounded-xl py-4`}
2150+
>
2151+
<div className="w-[60px] h-[60px] overflow-hidden">
2152+
<img
2153+
className="w-full h-full object-contain"
2154+
src={pad}
2155+
alt="img"
2156+
/>
2157+
</div>
2158+
<div className="text-sm font-semibold">
2159+
{t("no-data-avaliable")}
2160+
</div>
2161+
</div>
2162+
)}
21432163
</div>
21442164
<div className="op-join flex flex-wrap items-center p-2">
21452165
{props.List.length > props.docPerPage && (
@@ -2171,24 +2191,6 @@ const ReportTable = (props) => {
21712191
</button>
21722192
)}
21732193
</div>
2174-
{props.List?.length <= 0 && (
2175-
<div
2176-
className={`${
2177-
isDashboard ? "h-[317px]" : ""
2178-
} flex flex-col items-center justify-center w-ful bg-base-100 text-base-content rounded-xl py-4`}
2179-
>
2180-
<div className="w-[60px] h-[60px] overflow-hidden">
2181-
<img
2182-
className="w-full h-full object-contain"
2183-
src={pad}
2184-
alt="img"
2185-
/>
2186-
</div>
2187-
<div className="text-sm font-semibold">
2188-
{t("no-data-avaliable")}
2189-
</div>
2190-
</div>
2191-
)}
21922194
<ModalUi
21932195
title={t("add-contact")}
21942196
isOpen={isContactform}

0 commit comments

Comments
 (0)