Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 27 additions & 25 deletions apps/OpenSign/src/primitives/GetReportDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -1226,13 +1226,15 @@ const ReportTable = (props) => {
)}
</div>
<div
className={`${
isDashboard && props.List?.length > 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"
: ""
}`}
>
<table className="op-table border-collapse w-full mb-4">
<thead className="text-[14px]">
Expand Down Expand Up @@ -2140,6 +2142,24 @@ const ReportTable = (props) => {
)}
</tbody>
</table>
{props.List?.length <= 0 && (
<div
className={`${
isDashboard ? "h-[317px]" : ""
} flex flex-col items-center justify-center w-ful bg-base-100 text-base-content rounded-xl py-4`}
>
<div className="w-[60px] h-[60px] overflow-hidden">
<img
className="w-full h-full object-contain"
src={pad}
alt="img"
/>
</div>
<div className="text-sm font-semibold">
{t("no-data-avaliable")}
</div>
</div>
)}
</div>
<div className="op-join flex flex-wrap items-center p-2">
{props.List.length > props.docPerPage && (
Expand Down Expand Up @@ -2171,24 +2191,6 @@ const ReportTable = (props) => {
</button>
)}
</div>
{props.List?.length <= 0 && (
<div
className={`${
isDashboard ? "h-[317px]" : ""
} flex flex-col items-center justify-center w-ful bg-base-100 text-base-content rounded-xl py-4`}
>
<div className="w-[60px] h-[60px] overflow-hidden">
<img
className="w-full h-full object-contain"
src={pad}
alt="img"
/>
</div>
<div className="text-sm font-semibold">
{t("no-data-avaliable")}
</div>
</div>
)}
<ModalUi
title={t("add-contact")}
isOpen={isContactform}
Expand Down