diff --git a/src/components/tickets/priority-pill.tsx b/src/components/tickets/priority-pill.tsx index 3eebdad..ad1f234 100644 --- a/src/components/tickets/priority-pill.tsx +++ b/src/components/tickets/priority-pill.tsx @@ -3,12 +3,12 @@ import { Badge } from "@/components/ui/badge" import { cn } from "@/lib/utils" import { PriorityIcon, priorityStyles } from "@/components/tickets/priority-select" -const baseClass = "inline-flex h-9 items-center gap-2 rounded-full px-3 text-sm font-semibold" +const baseClass = "inline-flex h-7 items-center gap-2 rounded-full px-3 text-xs font-semibold" -export function TicketPriorityPill({ priority }: { priority: TicketPriority }) { +export function TicketPriorityPill({ priority, className }: { priority: TicketPriority; className?: string }) { const styles = priorityStyles[priority] return ( - + {styles?.label ?? priority} diff --git a/src/components/tickets/recent-tickets-panel.tsx b/src/components/tickets/recent-tickets-panel.tsx index b630d02..e9bbdf2 100644 --- a/src/components/tickets/recent-tickets-panel.tsx +++ b/src/components/tickets/recent-tickets-panel.tsx @@ -43,12 +43,13 @@ function TicketRow({ ticket, entering }: { ticket: Ticket; entering: boolean })
- #{ticket.reference} - - {queueLabel} - + #{ticket.reference} + {queueLabel}
+
+ +
@@ -61,21 +62,16 @@ function TicketRow({ ticket, entering }: { ticket: Ticket; entering: boolean }) {formatDistanceToNow(ticket.updatedAt, { addSuffix: true, locale: ptBR })}
-
- {channel} - - {ticket.assignee?.name ?? "Sem responsável"} - - {ticket.category ? ( - - {ticket.category.name} - {ticket.subcategory ? ` · ${ticket.subcategory.name}` : ""} - - ) : null} -
+ + {ticket.category ? ticket.category.name : channel} +
-
- +
+ {ticket.subcategory ? ( + + {ticket.subcategory.name} + + ) : null}