Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -56,23 +56,20 @@ function HistorialContent() {
|
|||||||
const dia = fecha.toLocaleDateString("es-AR", { day: "2-digit", month: "long", year: "numeric" });
|
const dia = fecha.toLocaleDateString("es-AR", { day: "2-digit", month: "long", year: "numeric" });
|
||||||
const diaSemana = fecha.toLocaleDateString("es-AR", { weekday: "long" });
|
const diaSemana = fecha.toLocaleDateString("es-AR", { weekday: "long" });
|
||||||
return (
|
return (
|
||||||
<div key={reg.id} className="bg-white border border-gray-200 rounded-2xl overflow-hidden shadow-sm hover:shadow-md transition">
|
<div key={reg.id} className="bg-white border border-gray-200 rounded-2xl px-4 py-3 flex flex-col gap-2 shadow-sm hover:shadow-md transition">
|
||||||
{/* Header de la tarjeta */}
|
<div className="flex items-start justify-between gap-2">
|
||||||
<div className="bg-blue-600 px-4 py-3 flex items-center justify-between gap-2">
|
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<span className="text-white text-lg">🔧</span>
|
<span className="text-lg">🔧</span>
|
||||||
<span className="text-white font-semibold text-sm sm:text-base">
|
<span className="font-semibold text-gray-800 text-sm sm:text-base">
|
||||||
{reg.tipoServicio?.nombre ?? reg.descripcion}
|
{reg.tipoServicio?.nombre ?? reg.descripcion}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="text-right shrink-0">
|
<div className="text-right shrink-0">
|
||||||
<p className="text-blue-100 text-xs capitalize">{diaSemana}</p>
|
<p className="text-gray-400 text-xs capitalize">{diaSemana}</p>
|
||||||
<p className="text-white text-xs font-medium">{dia}</p>
|
<p className="text-gray-600 text-xs font-medium">{dia}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Cuerpo */}
|
|
||||||
<div className="px-4 py-3 flex flex-col gap-2">
|
|
||||||
{reg.tipoServicio && reg.descripcion !== reg.tipoServicio.nombre && (
|
{reg.tipoServicio && reg.descripcion !== reg.tipoServicio.nombre && (
|
||||||
<p className="text-sm text-gray-700">{reg.descripcion}</p>
|
<p className="text-sm text-gray-700">{reg.descripcion}</p>
|
||||||
)}
|
)}
|
||||||
@@ -84,7 +81,6 @@ function HistorialContent() {
|
|||||||
)}
|
)}
|
||||||
<p className="text-xs text-gray-400 text-right">Realizado por: {reg.admin.nombre}</p>
|
<p className="text-xs text-gray-400 text-right">Realizado por: {reg.admin.nombre}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user