forked from administration/panel
fix: use inline alignment for badge
parent
8d31b59255
commit
2b296330c9
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue