fix badge alignment (#3088)

This commit is contained in:
Jonathan Dobson
2025-08-01 14:33:54 -04:00
committed by GitHub
parent 30eb580306
commit 12ee2bf9b0
2 changed files with 8 additions and 4 deletions

View File

@@ -3,15 +3,16 @@ import { Badge } from "./ui/badge";
import { cn } from "@/util/utils";
type Props = {
className?: string;
status: Status;
};
function StatusBadge({ status }: Props) {
function StatusBadge({ className, status }: Props) {
const statusText = status === "timed_out" ? "timed out" : status;
return (
<Badge
className={cn("flex h-7 w-24 justify-center", {
className={cn("flex h-7 w-24 justify-center", className, {
"bg-green-900 text-green-50 hover:bg-green-900/80":
status === Status.Completed,
"bg-orange-900 text-orange-50 hover:bg-orange-900/80":