Status badge and color updates (#638)

This commit is contained in:
Kerem Yilmaz
2024-07-24 08:51:39 -07:00
committed by GitHub
parent 38b684c17b
commit 71376422c6
3 changed files with 12 additions and 106 deletions

View File

@@ -23,7 +23,7 @@ function StatusBadge({ status }: Props) {
const statusText = status === "timed_out" ? "timed out" : status;
return (
<Badge className="h-fit" variant={variant}>
<Badge className="flex h-7 w-24 justify-center" variant={variant}>
{statusText}
</Badge>
);

View File

@@ -10,11 +10,11 @@ const badgeVariants = cva(
secondary:
"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
success:
"border-transparent bg-success text-success-foreground shadow hover:bg-success/80",
"border-transparent bg-success/40 text-success-foreground shadow hover:bg-success/30",
warning:
"border-transparent bg-warning text-warning-foreground shadow hover:bg-warning/80",
"border-transparent bg-warning/40 text-warning-foreground shadow hover:bg-warning/30",
destructive:
"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
"border-transparent bg-destructive/40 text-destructive-foreground shadow hover:bg-destructive/30",
outline: "text-foreground",
},
},