diff --git a/src/components/layout/app-shell.tsx b/src/components/layout/app-shell.tsx index f8c3da2..a1f19eb 100644 --- a/src/components/layout/app-shell.tsx +++ b/src/components/layout/app-shell.tsx @@ -13,7 +13,7 @@ import { useAuth } from "@/stores/auth-context"; import { usePreferences, useT } from "@/stores/preferences-context"; import { cn } from "@/lib/cn"; -const SIDEBAR_EXPANDED = "w-56"; +const SIDEBAR_EXPANDED = "w-56 2xl:w-64"; const SIDEBAR_COLLAPSED = "w-16"; export function AppShell(props: ParentProps) { @@ -88,7 +88,7 @@ export function AppShell(props: ParentProps) { H - {t("app.name")} + {t("app.name")}
diff --git a/src/components/layout/sidebar-account.tsx b/src/components/layout/sidebar-account.tsx index 0151310..50806f9 100644 --- a/src/components/layout/sidebar-account.tsx +++ b/src/components/layout/sidebar-account.tsx @@ -61,8 +61,8 @@ export function SidebarAccount(props: { collapsed?: boolean; onLogout: () => voi - {name()} - + {name()} + {t(`role.${u().role}` as MessageKey)} diff --git a/src/components/ui/data-table.tsx b/src/components/ui/data-table.tsx index 9a727c6..8d4ab82 100644 --- a/src/components/ui/data-table.tsx +++ b/src/components/ui/data-table.tsx @@ -287,8 +287,19 @@ export function DataTableSkeleton(props: { rows?: number; columns?: number }) { const rows = () => Array.from({ length: props.rows ?? 6 }); const columns = () => Array.from({ length: props.columns ?? 5 }); return ( - + + + + + {() => ( + + )} + + + {() => ( @@ -296,7 +307,7 @@ export function DataTableSkeleton(props: { rows?: number; columns?: number }) { {() => ( )} diff --git a/src/pages/course-detail-page.tsx b/src/pages/course-detail-page.tsx index d50f38a..ca061e2 100644 --- a/src/pages/course-detail-page.tsx +++ b/src/pages/course-detail-page.tsx @@ -27,7 +27,7 @@ import { Alert } from "@/components/ui/alert"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { ConfirmDialog } from "@/components/ui/confirm-dialog"; -import { DataTable } from "@/components/ui/data-table"; +import { DataTable, DataTableSkeleton } from "@/components/ui/data-table"; import { EmptyState } from "@/components/ui/empty-state"; import { IconChevronLeft, IconEdit, IconPlus, IconTrash } from "@/components/ui/icons"; import { createFlash } from "@/lib/flash"; @@ -603,7 +603,7 @@ function CourseDetailContent() { - }> + }> void navigate({ to: "/exams/$id", params: { id: exam.id } })} /> @@ -632,7 +632,7 @@ function CourseDetailContent() { - }> + }> 0} fallback={}> diff --git a/src/pages/event-detail-page.tsx b/src/pages/event-detail-page.tsx index f96005b..df1e8b5 100644 --- a/src/pages/event-detail-page.tsx +++ b/src/pages/event-detail-page.tsx @@ -22,7 +22,7 @@ import { Alert } from "@/components/ui/alert"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { ConfirmDialog } from "@/components/ui/confirm-dialog"; -import { DataTable } from "@/components/ui/data-table"; +import { DataTable, DataTableSkeleton } from "@/components/ui/data-table"; import { EmptyState } from "@/components/ui/empty-state"; import { IconChevronLeft, IconEdit, IconTrash } from "@/components/ui/icons"; import { PageSpinner } from "@/components/ui/page-spinner"; @@ -304,7 +304,7 @@ function EventDetailContent() { {t("events.registerStudent")} - }> + }> {(rows) => ( 0} fallback={}> @@ -345,7 +345,7 @@ function EventDetailContent() {

{t("events.attendanceRecordsHelp")}

- }> + }> {(rows) => (
{t("exams.examStatistics")}
- }> + }> {(s) => (
+
+
-
+