feat: enhance UI spacing and layout for attendee detail sections

This commit is contained in:
Jose Selesan
2026-10-01 12:35:57 -03:00
parent ea722a42f1
commit ef38f98747
4 changed files with 22 additions and 12 deletions

View File

@@ -75,7 +75,10 @@ export function AttendeeAttendanceSection() {
{visible.map((session) => {
const Icon = iconFor(session.status)
return (
<li key={session.classSessionId} className="flex items-center justify-between gap-3 py-2">
<li
key={session.classSessionId}
className="flex items-center justify-between gap-3 px-3 py-2"
>
<span className="truncate text-sm text-primary">
{formatSessionShortDate(session.startsAt)}
</span>
@@ -96,11 +99,11 @@ export function AttendeeAttendanceSection() {
{/* Las clases sin registro no son ausencias: se avisa aparte y en voz baja
para que el "1 de 1" de arriba no se lea como un fallo. */}
{summary.unmarkedLabel ? (
<p className="pt-2 text-right text-xs text-foreground">{summary.unmarkedLabel}</p>
<p className="px-3 pt-2 text-right text-xs text-foreground">{summary.unmarkedLabel}</p>
) : null}
{showAll && isCapped ? (
<p className="pt-2 text-xs text-foreground">
<p className="px-3 pt-2 text-xs text-foreground">
El historial guarda las últimas {HISTORY_LIMIT} clases.
</p>
) : null}
@@ -111,7 +114,7 @@ export function AttendeeAttendanceSection() {
variant="ghost"
onClick={() => setShowAll((value) => !value)}
aria-expanded={showAll}
className="h-11 gap-1 px-2 text-sm text-accent-fg hover:text-primary"
className="h-11 gap-1 px-3 text-sm text-accent-fg hover:text-primary"
>
{showAll ? 'Ver menos' : `Ver todas (${sessions.length})`}
<ChevronDown className={cn('size-4 transition-transform', showAll && 'rotate-180')} />