fix: show nav links on mobile, no auto-focus scroll to form

This commit is contained in:
root
2026-06-20 17:31:37 +00:00
parent 576781202f
commit fb576517e0
+4 -3
View File
@@ -136,7 +136,7 @@
.status-result .btn{margin-top:1rem}
footer{border-top:1px solid var(--border);padding:2rem;text-align:center;color:var(--text-muted);font-size:.8rem}
@media(max-width:768px){.hero-grid,.form-inner{grid-template-columns:1fr;gap:2rem}.hero-stats{grid-template-columns:1fr 1fr}.nav-links a{display:none}.tiers-grid,.why-grid,.process-steps{grid-template-columns:1fr}}
@media(max-width:768px){.hero-grid,.form-inner{grid-template-columns:1fr;gap:2rem}.hero-stats{grid-template-columns:1fr 1fr}.nav-links{gap:.75rem}.nav-links a,.theme-btn,.nav-links .btn{font-size:.75rem;padding:.35rem .65rem}.tiers-grid,.why-grid,.process-steps{grid-template-columns:1fr}}
.glow{position:fixed;width:600px;height:600px;border-radius:50%;background:radial-gradient(circle,rgba(108,92,231,.06) 0%,transparent 70%);pointer-events:none;z-index:-1;top:-200px;right:-200px}
.glow-2{bottom:-300px;left:-200px;width:500px;height:500px;background:radial-gradient(circle,rgba(108,92,231,.04) 0%,transparent 70%)}
</style>
@@ -428,7 +428,7 @@
<script>
(function(){
const API_URL = 'http://192.168.1.126:8581';
const API_URL = 'http://192.168.1.30:8581';
const totalSteps = 3;
let currentStep = 1;
@@ -467,7 +467,8 @@
const isFr = document.documentElement.classList.contains('lang-fr');
label.textContent = isFr ? 'Étape ' + n + ' sur ' + totalSteps : 'Step ' + n + ' of ' + totalSteps;
const input = stepEl ? stepEl.querySelector('input, select') : null;
if (input) setTimeout(() => input.focus(), 100);
// Only auto-focus on user-initiated step changes, not on page load
if (input && dir) setTimeout(() => input.focus(), 100);
currentStep = n;
}