diff --git a/bgs/tutorial.js b/bgs/tutorial.js index a188f80..d454fa7 100644 --- a/bgs/tutorial.js +++ b/bgs/tutorial.js @@ -67,8 +67,7 @@ export async function mountLesson(target, { chapter = "basics", locale = "en", o const planned = s.state.game.programs[0].some(slot => slot?.cards?.length); const readyToFire = chapter === "first-shot" && [1, 2].every(i => s.state.game.programs[0][i]?.cards?.length); const missed = LESSONS[index].basics && s.step === 2 && completedTurns(s.state) >= 3 && !s.completed; - guide.innerHTML = `
${standalone ? `${t("Partie locale", "Local game")}` : ''}${transport("sound", soundOn ? "speaker" : "muted", soundOn ? t("Couper les sons", "Mute sounds") : t("Activer les sons", "Enable sounds"))}
- + guide.innerHTML = `
${standalone ? `${t("Partie locale", "Local game")}` : ''}${transport("sound", soundOn ? "speaker" : "muted", soundOn ? t("Couper les sons", "Mute sounds") : t("Activer les sons", "Enable sounds"))}

${escape(s.title)}

${escape(missed ? t("Destination manquée. Revenez préparer un autre trajet.", "Destination missed. Go back and plan another route.") : s.text)}

${canPlay(s) ? transport("playback", playing ? "pause" : "right", playing ? t("Pause", "Pause") : t("Lire le programme", "Play program")) : ""}${transport("restart", "rewind", t("Recommencer l’exercice", "Restart exercise"), s.busy)}${transport("previous", "left", t("Étape précédente", "Previous step"), s.step === 0 || s.busy)}${transport("replay", "restart", t("Rejouer cette étape", "Replay step"), s.busy || s.step === 0)}${!LESSONS[index].basics && chapter !== "first-shot" && s.step === 1 && s.state.phase === 1 ? transport("phase", "step", t("Phase 2", "Phase 2"), s.busy) : ""}${!LESSONS[index].basics && s.step === 1 ? transport("run", "step", t("Exécuter le programme · ↵", "Run program · ↵"), (chapter === "first-shot" ? !readyToFire : !planned) || s.busy) : ""}${s.canContinue ? `` : ''}${s.completed && (nextChapter || standalone && LESSONS[index + 1]) ? `` : ''}
${s.error ? `

${escape(s.error)}

` : ''}`; diff --git a/preview/style.css b/preview/style.css index e875fb1..6d53bcc 100644 --- a/preview/style.css +++ b/preview/style.css @@ -2476,3 +2476,22 @@ input:not([type="checkbox"]):not([type="range"]) { @media (max-width: 800px) { .native-tutorial .flight-layout { grid-template-columns: 1fr; } } /* BGS already supplies the game name and chapter header. */ .native-tutorial > header { display: none; } + +/* Empty former room labels should not reserve a header row. */ +.station-title:empty { display: none; } +.native-guide-row { + display: flex; + align-items: center; + gap: 12px; + max-width: 948px; +} +.native-guide .native-guide-row .basics-stages { + flex: 1; + min-width: 0; + margin: 0; +} +.native-guide-row .native-guide-tools { flex: 0 0 auto; } +@media (max-width: 520px) { + .native-guide-row { gap: 6px; } + .native-guide-row .native-guide-tools a { display: none; } +}