From 95898c4a25a0966c6e34f8bd01afdcd507ea0aa5 Mon Sep 17 00:00:00 2001 From: Ashton Anderson Date: Mon, 30 Nov 2026 13:46:04 -0500 Subject: [PATCH] fix(wch): challenge cards keep their buttons level before results are out A challenge without results yet had no line under its button, so the button sat lower than its neighbours'. The line now says when everyone's results will show (or is an empty line of the same height). Co-Authored-By: Claude Opus 5.5 --- src/pages/wch/challenge/[[...round]].tsx | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/pages/wch/challenge/[[...round]].tsx b/src/pages/wch/challenge/[[...round]].tsx index df710e0d..90a2ab7d 100644 --- a/src/pages/wch/challenge/[[...round]].tsx +++ b/src/pages/wch/challenge/[[...round]].tsx @@ -113,8 +113,9 @@ const Named: React.FC<{ text: string }> = ({ text }) => ( ) /** - * How everyone did, at every Maia level together, in a line: only once the - * results are out (the API holds them back until enough games are in). + * How everyone did, at every Maia level together, in a line, once the results + * are out (the API holds them back until enough games are in). Until then the + * line says when they will be, so every card's button sits at the same height. */ const Everyone: React.FC<{ stats: PositionStats | null @@ -122,7 +123,16 @@ const Everyone: React.FC<{ drawPasses: boolean }> = ({ stats, drawPasses }) => { const share = stats ? winShare(stats) : null - if (!share || !stats) return null + if (!share || !stats) + return ( +

+ {stats?.reveal_after ? ( + `Everyone's results after ${stats.reveal_after} games` + ) : ( +   + )} +

+ ) return (

{drawPasses