1
0
Fork 0

fix: use inline alignment for badge

fix-1
Paul Makles 2023-07-25 12:52:10 +01:00
parent 8d31b59255
commit 2b296330c9
No known key found for this signature in database
GPG Key ID: 5059F398521BB0F6
1 changed files with 4 additions and 2 deletions

View File

@ -8,9 +8,11 @@ export function ReportCard({ report }: { report: Report }) {
<Link href={`/panel/reports/${report._id}`}> <Link href={`/panel/reports/${report._id}`}>
<Card className="transition-all hover:-translate-y-1 hover:shadow-md"> <Card className="transition-all hover:-translate-y-1 hover:shadow-md">
<CardHeader> <CardHeader>
<CardTitle className="overflow-ellipsis whitespace-nowrap overflow-x-clip flex gap-2 items-center"> <CardTitle className="overflow-ellipsis whitespace-nowrap overflow-x-clip">
{report.content.report_reason.includes("Illegal") && ( {report.content.report_reason.includes("Illegal") && (
<Badge variant="destructive">Urgent</Badge> <Badge className="align-middle" variant="destructive">
Urgent
</Badge>
)}{" "} )}{" "}
{report.additional_context || "No reason specified"} {report.additional_context || "No reason specified"}
</CardTitle> </CardTitle>