diff --git a/src/index.css b/src/index.css
index 522004b..d02862f 100644
--- a/src/index.css
+++ b/src/index.css
@@ -129,7 +129,7 @@
}
.data-table-wrap {
- @apply max-h-[62vh] overflow-auto rounded-lg border border-border bg-card;
+ @apply max-h-[62vh] overflow-auto rounded-xl border border-border/80 bg-card shadow-sm;
}
.data-table {
@@ -137,23 +137,27 @@
}
.data-table thead {
- @apply sticky top-0 z-10 border-b border-border bg-muted/95 text-muted-foreground backdrop-blur;
+ @apply sticky top-0 z-10 border-b border-border bg-muted/80 text-muted-foreground backdrop-blur;
}
.data-table th {
- @apply h-8 overflow-hidden text-ellipsis whitespace-nowrap border-r border-border/60 px-3 text-left text-[10px] font-semibold uppercase tracking-[0.11em] last:border-r-0;
+ @apply h-9 overflow-hidden text-ellipsis whitespace-nowrap border-r border-border/50 px-3 text-left text-[10px] font-semibold uppercase tracking-[0.11em] last:border-r-0;
}
.data-table td {
- @apply h-10 whitespace-nowrap border-r border-border/40 px-3 py-1.5 align-middle last:border-r-0;
+ @apply h-11 whitespace-nowrap border-r border-border/30 px-3 py-2 align-middle last:border-r-0;
}
.data-table tbody tr {
- @apply border-b border-border/70 transition-colors hover:bg-muted/60;
+ @apply border-b border-border/60 transition-colors hover:bg-primary/[0.045];
}
.data-table tbody tr:nth-child(even) {
- background-color: hsl(var(--muted) / 0.28);
+ background-color: hsl(var(--muted) / 0.18);
+ }
+
+ .data-table tbody tr:hover:nth-child(even) {
+ background-color: hsl(var(--primary) / 0.045);
}
.detail-breadcrumb {
diff --git a/src/lib/schedule-status.ts b/src/lib/schedule-status.ts
index 3b70764..30f5c31 100644
--- a/src/lib/schedule-status.ts
+++ b/src/lib/schedule-status.ts
@@ -15,11 +15,15 @@ export function scheduleStatusClass(status: ScheduleStatus | string): string {
if (status === "today" || status === "upcoming" || status === "soon") {
return "border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300";
}
+ if (status === "finished" || status === "past") {
+ return "border-rose-500/30 bg-rose-500/10 text-rose-700 dark:text-rose-300";
+ }
return "border-muted bg-muted/50 text-muted-foreground";
}
export function scheduleStatusDotClass(status: ScheduleStatus | string): string {
if (status === "active") return "bg-emerald-600";
if (status === "today" || status === "upcoming" || status === "soon") return "bg-amber-600";
+ if (status === "finished" || status === "past") return "bg-rose-600";
return "bg-muted-foreground";
}
diff --git a/src/pages/exams-page.tsx b/src/pages/exams-page.tsx
index 220e80d..aa01842 100644
--- a/src/pages/exams-page.tsx
+++ b/src/pages/exams-page.tsx
@@ -25,7 +25,7 @@ import { examKindLabel } from "@/lib/exam-labels";
import { createFlash } from "@/lib/flash";
import { formatDateTime } from "@/lib/format";
import { hasMinRole } from "@/lib/roles";
-import { scheduleStatusClass } from "@/lib/schedule-status";
+import { scheduleStatusClass, scheduleStatusDotClass } from "@/lib/schedule-status";
import { cn } from "@/lib/cn";
import { useAuth } from "@/stores/auth-context";
import { usePreferences, useT } from "@/stores/preferences-context";
@@ -155,7 +155,12 @@ function ExamsContent() {
meta: { headerClass: "text-center", cellClass: "text-center" },
cell: (cell) => {
const status = examStatus(cell.row.original);
- return {statusLabel(status)};
+ return (
+
+
+ {statusLabel(status)}
+
+ );
},
},
{