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"
size="sq"
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>
);
} else {

View file

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

View file

@ -270,10 +270,10 @@ export default function GenericModal({
ref={divRef}
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
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">
Prompt Variables:
@ -289,7 +289,7 @@ export default function GenericModal({
key={index}
variant="gray"
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]">
<span id={"badge" + index.toString()}>