fix(overlay): show every driver, compact rows beyond 12 (1.42.6)

The overlay page cut the leaderboard at 12 drivers. It now shows all of
them, with compact rows when there are more than 12 so they fit on a TV.
This commit is contained in:
larssand committed 2026-10-25 21:33:36 +01:00
1 parent 2c2b16537e
commit 0cabe1f96f
6 files changed
+29 -5

No files matched your search

+3 -1
View File
@@ -176,7 +176,9 @@ export function renderOverlayPageView(deps) {
const { state, dom, t, escapeHtml, formatLap, formatCountdown, formatElapsedClock, formatPredictedLapDelta, getActiveSession, buildLeaderboard, ensureSessionResult, getSessionTiming, getVisiblePassings, resolveEventBranding, buildPracticeStandings, buildQualifyingStandings, buildFinalStandings, getOverlayModeLabel, getStatusLabel, getObsOverlayConfig, buildOverlayPanels, normalizeStartMode, renderPositionGrid, getEventName, getSessionTypeLabel, getStartModeLabel, renderRaceStandingsTableView, renderTeamOverlay, renderObsOverlay, renderOverlayLeaderboard, renderOverlaySidePanel, formatTeamActiveMemberLabel, getSessionGridEntries, getSessionGridOrder, overlayViewMode, overlayMode, publicOverlayMode, overlayEvents, overlayRotationIndex, openOverlayWindow, buildOverlayUrl } = deps;
const active = getActiveSession();
const leaderboard = active ? buildLeaderboard(active).slice(0, 12) : [];
// Every driver: an Open Practice often has more than 12 cars out (OBS has its own row
// setting and cuts the list itself).
const leaderboard = active ? buildLeaderboard(active) : [];
const result = active ? ensureSessionResult(active.id) : null;
const sessionTiming = active ? getSessionTiming(active) : null;
const overlayClock = sessionTiming?.followUpActive