- Match {" "}
- Summary
+ Match Summary
{resultStyles.label}
diff --git a/components/ui/PageActions.tsx b/components/ui/PageActions.tsx
index c617ee99..32584bb4 100644
--- a/components/ui/PageActions.tsx
+++ b/components/ui/PageActions.tsx
@@ -17,7 +17,10 @@ export function PageActions({
*]:!rounded-lg max-sm:[&>*]:!border-l sm:w-fit sm:flex-row sm:gap-0"
+ : "w-fit",
className
)}
>
diff --git a/components/ui/ProfileForm.tsx b/components/ui/ProfileForm.tsx
index 5d81656f..a023e5a4 100644
--- a/components/ui/ProfileForm.tsx
+++ b/components/ui/ProfileForm.tsx
@@ -11,9 +11,10 @@ import { PageTitle, SectionTitle } from "@/components/ui/Typography";
import { ProfileAvatarChooser } from "./account/ProfileAvatarChooser";
import styles from "./account/profile.module.css";
import type { UserProfile } from "@/types/index";
+import { createStableDateTimeFormatter } from "@/lib/date-time";
const initialProfileActionState: ProfileActionState = { error: null, success: null };
-const DATE_TIME_FORMATTER = new Intl.DateTimeFormat("en-GB", { dateStyle: "medium", timeStyle: "short", timeZone: "Europe/London" });
+const DATE_TIME_FORMATTER = createStableDateTimeFormatter({ dateStyle: "medium", timeZone: "Europe/London" }, { timeStyle: "short", timeZone: "Europe/London" });
function formatDateTime(value: string | undefined) {
if (!value) return "Not available yet";
diff --git a/components/ui/SegmentedControl.tsx b/components/ui/SegmentedControl.tsx
index efb556e0..78d5d306 100644
--- a/components/ui/SegmentedControl.tsx
+++ b/components/ui/SegmentedControl.tsx
@@ -43,7 +43,7 @@ export function SegmentedControl({
variant={appearance === "line" ? "line" : "default"}
className={cn(
appearance === "line"
- ? "gap-6 rounded-none border-0 bg-transparent p-0 text-muted-foreground shadow-none"
+ ? "gap-6 rounded-none border-0 bg-transparent p-0 text-muted-foreground shadow-none max-sm:h-11"
: "rounded-[var(--control-radius)] border border-[var(--control-border)] bg-[var(--control-bg)] p-1 text-[var(--control-text)] shadow-[var(--control-shadow)]",
listSizeClasses[size],
className
@@ -54,7 +54,7 @@ export function SegmentedControl({
className={cn(
"h-full font-semibold",
appearance === "line"
- ? "min-w-0 flex-none rounded-none border-x-0 border-t-0 border-b-2 px-0 text-sm data-[state=active]:border-b-card-foreground data-[state=active]:bg-transparent data-[state=active]:text-card-foreground dark:data-[state=active]:border-x-0 dark:data-[state=active]:border-t-0 dark:data-[state=active]:border-b-card-foreground dark:data-[state=active]:bg-transparent"
+ ? "min-w-0 flex-none max-sm:min-h-11 max-sm:min-w-11 rounded-none border-x-0 border-t-0 border-b-2 px-0 text-sm data-[state=active]:border-b-card-foreground data-[state=active]:bg-transparent data-[state=active]:text-card-foreground dark:data-[state=active]:border-x-0 dark:data-[state=active]:border-t-0 dark:data-[state=active]:border-b-card-foreground dark:data-[state=active]:bg-transparent"
: cn("rounded-[calc(var(--control-radius)_-_2px)] data-[state=active]:bg-[var(--control-active-bg)] data-[state=active]:text-[var(--control-active-text)]", triggerSizeClasses[size])
)}
key={value}
diff --git a/components/ui/SharedLogPage.tsx b/components/ui/SharedLogPage.tsx
index 7ed0bedc..2fe39697 100644
--- a/components/ui/SharedLogPage.tsx
+++ b/components/ui/SharedLogPage.tsx
@@ -13,14 +13,12 @@ import { projectPublicBattleLogDetail } from "@/lib/battle-log/detail-projection
import { getSharedLogSnapshot } from "@/lib/db/log-shares";
import { requireSharedLogSnapshot } from "@/lib/shared-log-routing";
import type { PublicBattleLog } from "@/lib/db/log-shares";
+import { createStableDateTimeFormatter } from "@/lib/date-time";
-const SHARED_LOG_DATE_TIME_FORMATTER = new Intl.DateTimeFormat("en-GB", {
- day: "numeric",
- month: "short",
- year: "numeric",
- hour: "2-digit",
- minute: "2-digit"
-});
+const SHARED_LOG_DATE_TIME_FORMATTER = createStableDateTimeFormatter(
+ { day: "numeric", month: "short", year: "numeric" },
+ { hour: "2-digit", minute: "2-digit" }
+);
const SHARED_LOG_DATE_FORMATTER = new Intl.DateTimeFormat("en-GB", {
day: "numeric",
diff --git a/components/ui/Sidebar.tsx b/components/ui/Sidebar.tsx
index 28d3470d..c271b6b3 100644
--- a/components/ui/Sidebar.tsx
+++ b/components/ui/Sidebar.tsx
@@ -147,7 +147,7 @@ export function SidebarMobileTopbar() {
const { setOpenMobile } = useSidebar();
return (
-
+
-
+
diff --git a/components/ui/TournamentSummaryList.tsx b/components/ui/TournamentSummaryList.tsx
index ba5b3f60..838e83d7 100644
--- a/components/ui/TournamentSummaryList.tsx
+++ b/components/ui/TournamentSummaryList.tsx
@@ -103,7 +103,7 @@ export function TournamentSummaryList({
)}
- {isJudge ? "Professor Points (PP)" : "Championship Points (CP)"}
+ {isJudge ? "Points (PP)" : "Points (CP)"}
{(isJudge
diff --git a/components/ui/account/profile.module.css b/components/ui/account/profile.module.css
index d7f3ff4c..b7535090 100644
--- a/components/ui/account/profile.module.css
+++ b/components/ui/account/profile.module.css
@@ -89,3 +89,8 @@
@media (prefers-reduced-motion: reduce) {
.camera, .editor > summary svg { transition: none; }
}
+
+/* Phones get a full-height, visibly linked target. */
+@media (max-width: 639px) {
+ .profileLink { display: flex; width: fit-content; align-items: center; min-height: 2.75rem; margin-block: -.5625rem -.8125rem; text-decoration: underline; }
+}
diff --git a/components/ui/dashboard/DashboardOverview.tsx b/components/ui/dashboard/DashboardOverview.tsx
index ac999bab..90e49737 100644
--- a/components/ui/dashboard/DashboardOverview.tsx
+++ b/components/ui/dashboard/DashboardOverview.tsx
@@ -267,8 +267,12 @@ async function DashboardTournaments({
{isJudge ? getTournamentJudgeRoleLabel(tournament.judgeRole) : placement}
- {isJudge ? null : `${getTournamentRecord(tournament.rounds)} · `}
- {points ?? "—"} {isJudge ? "PP" : "CP"}
+ {[
+ isJudge ? null : getTournamentRecord(tournament.rounds),
+ points == null ? null : `${points} ${isJudge ? "PP" : "CP"}`
+ ]
+ .filter(Boolean)
+ .join(" · ")}
diff --git a/components/ui/dashboard/UpcomingEvents.tsx b/components/ui/dashboard/UpcomingEvents.tsx
index 35cf134b..d76eb4a3 100644
--- a/components/ui/dashboard/UpcomingEvents.tsx
+++ b/components/ui/dashboard/UpcomingEvents.tsx
@@ -6,11 +6,12 @@ import { pinEvent, saveEventFilters, unpinEvent } from "@/app/(app)/dashboard/ac
import { isUpcomingLimitlessEvent, withinUpcomingWindow, type EventFilters, type UpcomingLimitlessEvent } from "@/lib/tournaments/limitless-events";
import type { UserEventState } from "@/lib/db/upcoming-events";
import styles from "./upcoming-events.module.css";
+import { createStableDateTimeFormatter } from "@/lib/date-time";
const dateFormatter = new Intl.DateTimeFormat("en-GB", { weekday: "short", day: "numeric", month: "short" });
const timeFormatter = new Intl.DateTimeFormat("en-GB", { hour: "2-digit", minute: "2-digit" });
const numberFormatter = new Intl.NumberFormat("en-GB");
-const snapshotFormatter = new Intl.DateTimeFormat("en-GB", { day: "numeric", month: "short", hour: "2-digit", minute: "2-digit", timeZone: "UTC", timeZoneName: "short" });
+const snapshotFormatter = createStableDateTimeFormatter({ day: "numeric", month: "short", timeZone: "UTC" }, { hour: "2-digit", minute: "2-digit", timeZone: "UTC", timeZoneName: "short" });
const EVENT_REFRESH_MS = 15 * 60 * 1000;
const timeChoices = [
{ label: "Any time", hours: "All hours", from: "", to: "" },
diff --git a/components/ui/dashboard/dashboard.module.css b/components/ui/dashboard/dashboard.module.css
index 7b9b3894..68e22091 100644
--- a/components/ui/dashboard/dashboard.module.css
+++ b/components/ui/dashboard/dashboard.module.css
@@ -360,6 +360,22 @@
gap: 1.6rem;
}
+ /* A 44-px hit area without changing the row's height. */
+ .sectionLink {
+ min-height: 2.75rem;
+ margin-block: -0.8125rem;
+ }
+
+ /* Phones read the totals from the page's left edge like the rest of the stats. */
+ .pointTotals {
+ width: 100%;
+ margin-left: 0;
+ }
+
+ .pointTotal {
+ align-items: flex-start;
+ }
+
.statsGrid {
grid-template-columns: 1fr;
}
diff --git a/components/ui/dashboard/upcoming-events.module.css b/components/ui/dashboard/upcoming-events.module.css
index e9c8c72a..3da62c0a 100644
--- a/components/ui/dashboard/upcoming-events.module.css
+++ b/components/ui/dashboard/upcoming-events.module.css
@@ -76,6 +76,8 @@
.columns { display: block; }
.pinnedPanel { border-left: 0; padding-left: 0; }
.mobileHidden { display: none; }
+ /* The active tab already names the panel, so its heading stays for screen readers only. */
+ .panelHeading h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.timeChoices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.timeChoice:first-child { grid-column: 1 / -1; }
}
diff --git a/components/ui/deck-strategy/matchup-header.module.css b/components/ui/deck-strategy/matchup-header.module.css
index 198eaffc..5f052e7f 100644
--- a/components/ui/deck-strategy/matchup-header.module.css
+++ b/components/ui/deck-strategy/matchup-header.module.css
@@ -24,7 +24,8 @@
@container (min-width: 48rem) {
.controls { grid-template-columns: minmax(0, 15.5rem) minmax(0, 12rem) minmax(0, 10rem) minmax(0, 1fr); }
.turnField { display: grid; grid-column: auto; gap: .5rem; }
- .turnField [role="tablist"] { height: 2.75rem; }
+ .turnField [role="tablist"] { height: auto; padding: 0; }
+ .turnField [role="tab"] { min-height: 2.75rem; }
.status { grid-column: auto; padding-bottom: .875rem; }
}
@@ -32,7 +33,10 @@
.parentDeck { margin-top: .25rem; font-size: .75rem; }
.controls { gap: 1rem; }
.turnField { gap: .5rem; }
- .turnField > span { max-width: 3rem; font-size: .75rem; line-height: 1.4; }
- .turnField [role="tab"] { min-width: 4rem; padding-inline: .65rem; }
+ .turnField { justify-content: flex-start; }
+ .turnField > span { font-size: .75rem; white-space: nowrap; }
+ .turnField [role="tablist"] { height: auto; padding: 0; }
+ .turnField [role="tab"] { min-height: 2.75rem; }
+ .turnField [role="tab"] { min-width: 0; padding-inline: .65rem; }
.label { font-size: .75rem; }
}
diff --git a/components/ui/deck-strategy/strategy.module.css b/components/ui/deck-strategy/strategy.module.css
index ab7883f1..b7457eec 100644
--- a/components/ui/deck-strategy/strategy.module.css
+++ b/components/ui/deck-strategy/strategy.module.css
@@ -143,7 +143,7 @@
.lanes { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.matchupLaneBody { min-height: 0; }
.lane { padding-top: .5rem; }
- .laneHeader { margin-bottom: .25rem; gap: .5rem; }
+ .laneHeader { align-items: flex-start; margin-bottom: .25rem; gap: .5rem; }
.desktopCategoryLabel { display: none; }
.categoryToggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; width: 100%; text-align: left; cursor: pointer; }
.categoryToggle svg { flex-shrink: 0; transition: transform 150ms ease-out; }
@@ -161,7 +161,9 @@
.captureDesktop, .desktopSearch { display: none; }
.contextRow { gap: .5rem; padding-bottom: 1.25rem; margin-bottom: 1.5rem; }
.turnPreference { gap: .5rem; font-size: .75rem; }
- .turnPreference > span { max-width: 3rem; line-height: 1.4; }
+ .turnPreference > span { white-space: nowrap; }
+ .turnPreference [role="tablist"] { height: auto; padding: 0; }
+ .turnPreference [role="tab"] { min-height: 2.75rem; }
.turnPreference [role="tab"] { min-width: 4rem; padding-inline: .75rem; }
.saveStatus { font-size: .75rem; }
.notesHeader { gap: .5rem; margin-bottom: 1rem; }
diff --git a/components/ui/social/PlayerProfile.tsx b/components/ui/social/PlayerProfile.tsx
index 07409c65..ee0aeda0 100644
--- a/components/ui/social/PlayerProfile.tsx
+++ b/components/ui/social/PlayerProfile.tsx
@@ -9,8 +9,9 @@ import type { SocialProfile } from "@/lib/social/types";
import { FavouriteCardArt } from "./FavouriteCardArt";
import { FriendActions } from "./FriendActions";
import styles from "./social.module.css";
+import { createStableDateTimeFormatter } from "@/lib/date-time";
-const loginFormatter = new Intl.DateTimeFormat("en-GB", { dateStyle: "medium", timeStyle: "short", timeZone: "Europe/London" });
+const loginFormatter = createStableDateTimeFormatter({ dateStyle: "medium", timeZone: "Europe/London" }, { timeStyle: "short", timeZone: "Europe/London" });
const loginDateFormatter = new Intl.DateTimeFormat("en-GB", { dateStyle: "medium", timeZone: "Europe/London" });
const loginTimeFormatter = new Intl.DateTimeFormat("en-GB", { timeStyle: "short", timeZone: "Europe/London" });
diff --git a/components/ui/stats/stats.module.css b/components/ui/stats/stats.module.css
index 008a1ed3..068f0103 100644
--- a/components/ui/stats/stats.module.css
+++ b/components/ui/stats/stats.module.css
@@ -54,7 +54,7 @@
.recordNumbers dt { font-size: .7rem; }
.recordNumbers dd { font-size: 1.25rem; }
.record > .note, .textLink { grid-column: 1 / -1; }
- .textLink { padding-top: 1.25rem; }
+ .textLink { min-height: 2.75rem; padding-top: .5rem; }
.recentStrip { gap: .75rem; flex-wrap: wrap; padding: 1rem 0; margin-top: 0; }
.recentLabel { flex-direction: row; align-items: baseline; width: 100%; justify-content: space-between; }
.results { flex: 1; justify-content: flex-start; gap: clamp(.75rem, 4vw, 1.5rem); }
diff --git a/components/ui/tournament/collection.module.css b/components/ui/tournament/collection.module.css
index a1723f58..8ee8b3a0 100644
--- a/components/ui/tournament/collection.module.css
+++ b/components/ui/tournament/collection.module.css
@@ -28,7 +28,7 @@
.locationIcon { display: inline-block; width: 0.875rem; height: 0.875rem; margin-right: 0.1875rem; vertical-align: -0.125rem; }
.identifier { margin-top: 0.125rem; color: var(--muted-foreground); font-size: 0.75rem; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric { display: flex; min-width: 0; align-self: start; flex-direction: column; gap: 0.25rem; }
-.metricLabel { color: var(--muted-foreground); font-size: 0.75rem; line-height: 1.5; }
+.metricLabel { overflow: hidden; color: var(--muted-foreground); font-size: 0.75rem; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.metricValue { font-size: 1rem; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.record, .points { font-variant-numeric: tabular-nums; }
.judgeRole { grid-column: 1 / 3; }
diff --git a/lib/date-time.ts b/lib/date-time.ts
index c7efe808..4f56a757 100644
--- a/lib/date-time.ts
+++ b/lib/date-time.ts
@@ -12,3 +12,19 @@ export function formatAppCalendarDate(value: string | Date) {
typeof value === "string" ? new Date(value) : value
);
}
+
+/**
+ * Formats a date and a time and joins them itself. Engines join a combined
+ * en-GB date-time differently (Node "10 Nov 2026, 00:03", Safari
+ * "10 Nov 2026 at 00:03"), so a single formatter breaks hydration.
+ */
+export function createStableDateTimeFormatter(
+ dateOptions: Intl.DateTimeFormatOptions,
+ timeOptions: Intl.DateTimeFormatOptions
+) {
+ const dateFormatter = new Intl.DateTimeFormat("en-GB", dateOptions);
+ const timeFormatter = new Intl.DateTimeFormat("en-GB", timeOptions);
+ return {
+ format: (value: Date) => `${dateFormatter.format(value)}, ${timeFormatter.format(value)}`
+ };
+}