feat: enhance UI spacing and layout for attendee detail sections
This commit is contained in:
@@ -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')} />
|
||||
|
||||
Reference in New Issue
Block a user