Remove detached tutorial autosave checkmark
This commit is contained in:
parent
2aa49cc614
commit
a663dbaf45
2 changed files with 1 additions and 3 deletions
|
|
@ -65,7 +65,7 @@ export async function mountLesson(target, { chapter = "basics", locale = "en", o
|
|||
guide.innerHTML = `<div class="native-guide-top"><span>${escape(LESSONS[index].title[locale === "fr" ? 0 : 1])}</span><div class="native-guide-tools">${standalone ? `<a href="/">${t("Partie locale", "Local game")}</a>` : ''}${transport("sound", soundOn ? "speaker" : "muted", soundOn ? t("Couper les sons", "Mute sounds") : t("Activer les sons", "Enable sounds"))}</div></div>
|
||||
<nav class="basics-stages" aria-label="${t("Étapes", "Steps")}">${label.map((name, i) => `<button data-guide-step="${i}" class="quiet ${Math.min(s.step, 2) === i ? 'active' : ''}" ${i > s.step || s.busy ? 'disabled' : ''} ${s.step === i ? 'aria-current="step"' : ''}><span class="step-number">${i + 1}</span><span>${name}</span></button>`).join('')}</nav>
|
||||
<h1>${escape(s.title)}</h1><p class="native-guide-text">${escape(missed ? t("Destination manquée. Revenez préparer un autre trajet.", "Destination missed. Go back and plan another route.") : s.text)}</p>
|
||||
<div class="native-guide-controls">${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)}${s.canContinue ? `<button data-guide="continue" class="primary icon-button" title="${t("Commencer", "Start")}" aria-label="${t("Commencer", "Start")}">${pictogram("right")}</button>` : ''}${s.completed && (nextChapter || standalone && LESSONS[index + 1]) ? `<button data-guide="next" class="primary icon-label"><span>${t("Exercice suivant", "Next exercise")}</span>${pictogram("right")}</button>` : ''}<small title="${t("Progression enregistrée", "Progress saved")}" aria-label="${t("Progression enregistrée", "Progress saved")}">${s.saved ? "✓" : ""}</small></div>
|
||||
<div class="native-guide-controls">${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)}${s.canContinue ? `<button data-guide="continue" class="primary icon-button" title="${t("Commencer", "Start")}" aria-label="${t("Commencer", "Start")}">${pictogram("right")}</button>` : ''}${s.completed && (nextChapter || standalone && LESSONS[index + 1]) ? `<button data-guide="next" class="primary icon-label"><span>${t("Exercice suivant", "Next exercise")}</span>${pictogram("right")}</button>` : ''}</div>
|
||||
${s.error ? `<p role="alert">${escape(s.error)}</p>` : ''}`;
|
||||
}
|
||||
const unsubscribe = tutorial.subscribe(s => {
|
||||
|
|
|
|||
|
|
@ -2328,7 +2328,6 @@ input:not([type="checkbox"]):not([type="range"]) {
|
|||
.native-guide h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 20px 0 8px; }
|
||||
.native-guide-text { line-height: 1.6; white-space: pre-line; max-width: 65ch; }
|
||||
.native-guide-controls { margin-top: 16px; }
|
||||
.native-guide-controls small { color: #9db0bf; margin-left: auto; }
|
||||
.native-guide .basics-stages { grid-template-columns: repeat(3, 1fr); margin: 16px 0; }
|
||||
.native-tutorial .basics-top,
|
||||
.native-tutorial #basics-guide > .basics-stages,
|
||||
|
|
@ -2349,7 +2348,6 @@ input:not([type="checkbox"]):not([type="range"]) {
|
|||
@media (max-width: 520px) {
|
||||
.native-guide .basics-stages { gap: 3px; }
|
||||
.native-guide .basics-stages button { flex-direction: column; gap: 6px; padding: 10px 4px; text-align: center; }
|
||||
.native-guide-controls small { width: 100%; margin: 0; }
|
||||
}
|
||||
.native-tutorial #basics-run { width: 64px; height: 48px; }
|
||||
.practice-readiness > span { display: inline-flex; align-items: center; gap: 6px; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue