diff --git a/app/src/ui/app.ts b/app/src/ui/app.ts index 9193a8b..71a19ab 100644 --- a/app/src/ui/app.ts +++ b/app/src/ui/app.ts @@ -862,7 +862,9 @@ export function startApp(options: AppOptions): void { const advice = finishedId === null ? shownAdvice() : null; renderAdviceLine(notice === null && !stuck ? advice : null); ui.overLine.hidden = finishedId === null || notice !== null; - ui.info.hidden = !ui.overLine.hidden; + if (!ui.overLine.hidden) { + ui.info.hidden = true; + } if (finishedId !== null) { ui.overSummary.href = routeHash({ screen: "summary", game: finishedId }); } diff --git a/tests/browser/play.mjs b/tests/browser/play.mjs index ad1a303..ca20e27 100644 --- a/tests/browser/play.mjs +++ b/tests/browser/play.mjs @@ -1255,7 +1255,10 @@ for (let actions = 0; ; actions++) { step(`partie, action ${actions}`); const afterReload = justReloaded; justReloaded = false; - await checkStable(`action ${actions} (${todo})`); + // La partie finie, le bilan est une page : l'écran de jeu est caché. + if (todo !== "over") { + await checkStable(`action ${actions} (${todo})`); + } // Le coup de l'ordinateur est montré jusqu'à l'action suivante du // joueur ; deux fois, on le revoit (la seconde en mouvement réduit). const traces = touched ? null : await checkTraces(); diff --git a/web/app.css b/web/app.css index bcf57a2..5dab14b 100644 --- a/web/app.css +++ b/web/app.css @@ -3839,6 +3839,21 @@ html.landscape .summary-bar { border-top: 0; } +/* Paysage très bas (844 × 320) : la page ne tient plus sur l'écran. La + * barre ne reste pas collée, ce qui cacherait le bas de la colonne de + * droite : elle suit la page, sous cette colonne. */ +@media (max-height: 360px) { + html.landscape .summary-bar { + position: static; + margin: 0 max(0px, calc((100% - 60rem) / 2)) var(--space-2) calc(50% + var(--space-3)); + padding-top: 0; + } + + html.landscape .summary-side { + padding-bottom: 0; + } +} + /* ------------------------------------------- Analyse d'une partie (1e) */ /* Maquette interactive « Analyse » : une page qui défile. */