Skip to content

Commit

Permalink
[TM-1011] edit style in table comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dottyy committed Jan 30, 2025
1 parent 5fc3dd9 commit 49e42e4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const AuditLogTable: FC<{
if (fullColumns) {
return isAdmin ? "grid-cols-[14%_20%_15%_27%_19%_5%]" : "grid-cols-[14%_20%_15%_30%_21%]";
} else {
return "grid-cols-[20%_20%_40%]";
return "grid-cols-[30%_30%_40%]";
}
} else {
return isAdmin ? "grid-cols-[14%_10%_10%_15%_27%_19%_5%]" : "grid-cols-[14%_10%_10%_15%_30%_21%]";
Expand Down Expand Up @@ -125,7 +125,7 @@ const AuditLogTable: FC<{
<Text variant="text-12" className="border-b border-b-grey-750 py-2 pr-2">
{generateUserName(item.first_name, item.last_name)}
</Text>
<When condition={auditData?.entity !== "site-polygon" && !fullColumns}>
<When condition={auditData?.entity !== "site-polygon" && !!fullColumns}>
<Text variant="text-12" className="border-b border-b-grey-750 py-2 pr-2">
{formattedTextStatus(item.status as string) ?? "-"}
</Text>
Expand All @@ -136,12 +136,12 @@ const AuditLogTable: FC<{
auditData?.entity
)}
</Text>
<When condition={!fullColumns}>
<When condition={!!fullColumns}>
<Text variant="text-12" className="border-b border-b-grey-750 py-2">
{item.comment ?? "-"}
</Text>
</When>
<When condition={!fullColumns}>
<When condition={!!fullColumns}>
<div className="grid max-w-full gap-2 gap-y-1 border-b border-b-grey-750 py-2">
{item?.attachments?.map((attachmentItem: V2FileRead) => (
<Text
Expand Down

0 comments on commit 49e42e4

Please sign in to comment.