fix: inconsistent service card height

This commit is contained in:
João Gabriel
2024-12-27 11:08:55 -03:00
parent 4533b193a4
commit d45b558251

View File

@@ -236,7 +236,7 @@ const Project = (
</header> </header>
</div> </div>
<div className="flex w-full gap-8 "> <div className="flex w-full gap-8">
{emptyServices ? ( {emptyServices ? (
<div className="flex h-[70vh] w-full flex-col items-center justify-center"> <div className="flex h-[70vh] w-full flex-col items-center justify-center">
<FolderInput className="size-10 md:size-28 text-muted" /> <FolderInput className="size-10 md:size-28 text-muted" />
@@ -255,7 +255,7 @@ const Project = (
`/dashboard/project/${projectId}/services/${service.type}/${service.id}`, `/dashboard/project/${projectId}/services/${service.type}/${service.id}`,
); );
}} }}
className="group relative cursor-pointer bg-transparent transition-colors hover:bg-card h-fit" className="flex flex-col group relative cursor-pointer bg-transparent transition-colors hover:bg-card"
> >
<div className="absolute -right-1 -top-2"> <div className="absolute -right-1 -top-2">
<StatusTooltip status={service.status} /> <StatusTooltip status={service.status} />
@@ -301,7 +301,7 @@ const Project = (
</div> </div>
</CardTitle> </CardTitle>
</CardHeader> </CardHeader>
<CardFooter className=""> <CardFooter className="mt-auto">
<div className="space-y-1 text-sm"> <div className="space-y-1 text-sm">
<DateTooltip date={service.createdAt}> <DateTooltip date={service.createdAt}>
Created Created