diff --git a/next-env.d.ts b/next-env.d.ts
index ce4e94a..a419cbe 100644
--- a/next-env.d.ts
+++ b/next-env.d.ts
@@ -1,7 +1,7 @@
///
///
-import "./.next/types/routes.d.ts";
-import "./.next/types/root-params.d.ts";
+import "./.next/dev/types/routes.d.ts";
+import "./.next/dev/types/root-params.d.ts";
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
diff --git a/src/components/units/units-dashboard.tsx b/src/components/units/units-dashboard.tsx
index 59f554f..9ff2bbe 100644
--- a/src/components/units/units-dashboard.tsx
+++ b/src/components/units/units-dashboard.tsx
@@ -1446,6 +1446,17 @@ function OfferingDetail({
)}
+ {/* Top padding leaves room for the mascot peeking over the board. */}
+
+
+
+
@@ -1666,7 +1678,7 @@ const LEADERBOARD_TABLES = new Set([
"unit_enrolments",
]);
-// One request feeds both the desktop board and the mobile "Counting" row.
+// One request feeds both boards and the mobile "Counting" row.
function useUnitWeeklyLeaderboard(
offeringId: string,
remoteClient: SupabaseClient | null,
@@ -1705,11 +1717,13 @@ function UnitWeeklyLeaderboard({
code,
currentUserId,
entries,
+ isLinked,
isRemote,
}: {
code: string;
currentUserId: string | null;
entries: UnitLeaderboardEntry[] | null;
+ isLinked: boolean;
isRemote: boolean;
}) {
const ranked = (entries ?? []).filter((entry) => entry.weekSeconds > 0);
@@ -1757,8 +1771,8 @@ function UnitWeeklyLeaderboard({
= 3 && "hidden lg:grid",
+ // Mobile keeps it short: top 3, plus you if further down.
+ index >= 3 && !isYou && "hidden lg:grid",
)}
key={entry.id}
>
@@ -1799,8 +1813,10 @@ function UnitWeeklyLeaderboard({
) : (
- No study logged for {code} yet this week. Link a subject and start a
- session to lead the board.
+ No study logged for {code} yet this week.{" "}
+ {isLinked
+ ? "Start a session to lead the board."
+ : "Link a subject and start a session to lead the board."}