Fixed badges exhibition and genericModal footer

This commit is contained in:
Lucas Oliveira 2024-06-14 19:05:16 -03:00
commit 6a3e4817ed
3 changed files with 18 additions and 5 deletions

View file

@ -30,10 +30,22 @@ export default function TableAutoCellRender({
variant="outline" variant="outline"
size="sq" size="sq"
className={cn( className={cn(
"min-w-min bg-success-background text-success-foreground hover:bg-success-background" "min-w-min bg-success-background text-success-foreground hover:bg-success-background",
)} )}
> >
{value} Success
</Badge>
);
} else if (value === "failure") {
return (
<Badge
variant="outline"
size="sq"
className={cn(
"min-w-min bg-error-background text-error-foreground hover:bg-error-background",
)}
>
Failure
</Badge> </Badge>
); );
} else { } else {

View file

@ -69,6 +69,7 @@ export default function FlowLogsModal({
className="h-max-full h-full w-full" className="h-max-full h-full w-full"
pagination={rows.length === 0 ? false : true} pagination={rows.length === 0 ? false : true}
columnDefs={columns} columnDefs={columns}
rowHeight={48}
autoSizeStrategy={{ type: "fitGridWidth" }} autoSizeStrategy={{ type: "fitGridWidth" }}
rowData={rows} rowData={rows}
headerHeight={rows.length === 0 ? 0 : undefined} headerHeight={rows.length === 0 ? 0 : undefined}

View file

@ -270,10 +270,10 @@ export default function GenericModal({
ref={divRef} ref={divRef}
className="max-h-20 overflow-y-auto custom-scroll" className="max-h-20 overflow-y-auto custom-scroll"
> >
<div className="flex flex-wrap items-center"> <div className="flex flex-wrap items-center gap-2">
<IconComponent <IconComponent
name="Braces" name="Braces"
className=" -ml-px mr-1 flex h-4 w-4 text-primary" className=" flex h-4 w-4 text-primary"
/> />
<span className="text-md font-semibold text-primary"> <span className="text-md font-semibold text-primary">
Prompt Variables: Prompt Variables:
@ -289,7 +289,7 @@ export default function GenericModal({
key={index} key={index}
variant="gray" variant="gray"
size="md" size="md"
className="m-1 max-w-[40vw] cursor-default truncate p-2.5 text-sm" className="max-w-[40vw] cursor-default truncate p-1 text-sm"
> >
<div className="relative bottom-[1px]"> <div className="relative bottom-[1px]">
<span id={"badge" + index.toString()}> <span id={"badge" + index.toString()}>