Resumen de cambios del commit y de los dos wips anteriores:
• Cambio del estilo visual del layout del detalle de asignatura • El nivel de un plan de estudios se muestra como editable con un select • se quitó 'disabled:pointer-events-none' del componente button para permitir que el cursor cambie a cursor-not-allowed sobre botones disabled • todos los botones y elementos con role de button no deshabilitados tienen cursor-pointer • todos los botones y elementos con role de button deshabilitados tienen cursor-not-allowed cada cambio tanto en el historial de un plan como de una asignatura se puede abrir picandole en cualquier parte del cambio
This commit is contained in:
@@ -9,7 +9,6 @@ import {
|
||||
User,
|
||||
Loader2,
|
||||
Clock,
|
||||
Eye,
|
||||
History,
|
||||
Calendar,
|
||||
ChevronLeft,
|
||||
@@ -156,7 +155,16 @@ function RouteComponent() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Card className="border-border hover:border-primary/50 flex-1 shadow-none transition-colors">
|
||||
<Card
|
||||
className="border-border hover:border-primary/50 flex-1 cursor-pointer shadow-none transition-colors"
|
||||
onClick={() => openCompareModal(event)}
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === 'Enter' || e.key === ' ')
|
||||
openCompareModal(event)
|
||||
}}
|
||||
>
|
||||
<CardContent className="p-4">
|
||||
<div className="flex flex-col gap-2">
|
||||
{/* LÍNEA SUPERIOR: Título a la izquierda --- Usuario, Botón y Fecha a la derecha */}
|
||||
@@ -186,15 +194,6 @@ function RouteComponent() {
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{/* Botón Ver Cambios */}
|
||||
<button
|
||||
onClick={() => openCompareModal(event)}
|
||||
className="text-primary md:text-muted-foreground md:hover:text-primary group/btn flex items-center gap-1.5 text-xs font-medium"
|
||||
>
|
||||
<Eye className="text-muted-foreground/70 group-hover/btn:text-primary h-4 w-4" />
|
||||
<span>Ver cambios</span>
|
||||
</button>
|
||||
|
||||
{/* Fecha exacta (Solo visible en desktop para no amontonar) */}
|
||||
<span className="text-muted-foreground/70 hidden text-[11px] lg:block">
|
||||
{format(event.date, 'yyyy-MM-dd HH:mm')}
|
||||
|
||||
@@ -246,7 +246,7 @@ function AsignaturaLayout() {
|
||||
{/* Badge Estático del Tipo (Estilo oscuro sutil) */}
|
||||
<Badge
|
||||
variant="outline"
|
||||
className="flex h-8 items-center gap-1.5 border-white/10 bg-white/5 px-3 text-white hover:border-white/20 hover:bg-white/10"
|
||||
className="flex h-8 cursor-default items-center gap-1.5 border-white/10 bg-white/5 px-3 text-white"
|
||||
>
|
||||
<Tag size={12} className="text-white/70" />
|
||||
{asignaturaApi.tipo}
|
||||
|
||||
Reference in New Issue
Block a user