fix: refine ticket UI styling

This commit is contained in:
Esdras Renan 2025-11-01 01:13:41 -03:00
parent 8b82284e8c
commit 5c5207ceb8
6 changed files with 23 additions and 20 deletions

View file

@ -240,14 +240,13 @@ export function TicketComments({ ticket }: TicketCommentsProps) {
<CardHeader className="px-4 pb-3">
<CardTitle className="flex items-center gap-2 text-lg font-semibold text-neutral-900">
<IconMessage className="size-5 text-neutral-900" /> Comentários
<Badge className="inline-flex h-7 items-center gap-2 rounded-full border border-slate-200 bg-white px-3 text-sm font-semibold text-neutral-700">
{commentsAll.length} {commentsAll.length === 1 ? "comentário" : "comentários"}
</Badge>
</CardTitle>
</CardHeader>
<CardContent className="space-y-6 px-4 pb-6">
<div className="flex flex-wrap items-center justify-between gap-2">
<div className="flex items-center gap-2 text-sm font-medium text-neutral-600">
<IconMessage className="size-4" />
<span>{commentsAll.length} {commentsAll.length === 1 ? "comentário" : "comentários"}</span>
</div>
<Button
type="button"
variant="ghost"

View file

@ -52,7 +52,7 @@ export function TicketQueueSummaryCards({ queues }: TicketQueueSummaryProps) {
</CardTitle>
</CardHeader>
<CardContent className="space-y-3 sm:space-y-4">
<div className="grid grid-cols-[repeat(auto-fit,minmax(9.5rem,1fr))] gap-2.5">
<div className="grid min-w-0 grid-cols-1 gap-2.5 sm:grid-cols-2">
<div className="flex min-w-0 flex-col items-start justify-between gap-2 rounded-xl border border-slate-200 bg-gradient-to-br from-white via-white to-slate-100 px-3 py-2.5 text-left shadow-sm lg:px-4 lg:py-3">
<p className="min-w-0 pr-0.5 text-[0.68rem] font-semibold uppercase leading-tight tracking-[0.02em] text-neutral-500 sm:text-[0.72rem] lg:text-xs">
Pendentes
@ -69,7 +69,7 @@ export function TicketQueueSummaryCards({ queues }: TicketQueueSummaryProps) {
{queue.waiting}
</p>
</div>
<div className="flex min-w-0 flex-col items-start justify-between gap-2 rounded-xl border border-amber-200 bg-gradient-to-br from-white via-white to-amber-50 px-3 py-2.5 text-left shadow-sm lg:px-4 lg:py-3">
<div className="flex min-w-0 flex-col items-start justify-between gap-2 rounded-xl border border-amber-200 bg-gradient-to-br from-white via-white to-amber-50 px-3 py-2.5 text-left shadow-sm sm:col-span-2 lg:px-4 lg:py-3">
<p className="min-w-0 pr-0.5 text-[0.68rem] font-semibold uppercase leading-tight tracking-[0.02em] text-amber-700 sm:text-[0.72rem] lg:text-xs">
Violados
</p>

View file

@ -1025,7 +1025,6 @@ export function TicketSummaryHeader({ ticket }: TicketHeaderProps) {
<TooltipTrigger asChild>
<Badge
className="inline-flex h-9 cursor-help items-center gap-2 rounded-full border border-slate-200 bg-white px-3 text-sm font-semibold text-neutral-700 [&>svg]:size-5"
title="Tempo total de atendimento"
>
<IconClock className="size-5 text-neutral-700" /> {formattedTotalWorked}
</Badge>