- Sidebar mobile: display:block du breakpoint ≤768px cassait flex:1 de .sidebar-scroll → molette/touch incapables de scroller le drawer. Flex restauré. Gate: wheel scroll scrollTop > 0. - Settings mobile: nav horizontale remplacée par une side-navigation gauche drawer (hamburger .settings-menu-btn + backdrop, fermeture auto au choix). Squelette panneau extrait vers static/css/settings.css (partagé). - /help refaite au complet: template help.html (13 sections couvrant toute l'app — éditeur, databases/vues, tâches, workspaces, collab, agent IA, API v2, PWA, SSO, raccourcis, tips) avec le même panneau 2 colonnes + drawer mobile; route réduite à un render; help.js (Alpine.data helpInit). E2E mobile_regression 6/6 + smoke 2/2 · pytest app+pwa 230/230
19 lines
626 B
JavaScript
19 lines
626 B
JavaScript
if (!window.__fdHelpScriptLoaded) {
|
|
window.__fdHelpScriptLoaded = true;
|
|
// Alpine.data register (CSP build ne résout pas les globales window)
|
|
if (window.Alpine) { Alpine.data('helpInit', helpInit); fdRefreshXData('helpInit'); } else document.addEventListener('alpine:init', function () { Alpine.data('helpInit', helpInit); });
|
|
function helpInit() {
|
|
return {
|
|
section: 'start',
|
|
navOpen: false,
|
|
closeNavOnMobile() { this.navOpen = false; },
|
|
go(sec) {
|
|
this.section = sec;
|
|
this.navOpen = false;
|
|
var c = document.querySelector('.settings-content');
|
|
if (c) c.scrollTop = 0;
|
|
},
|
|
};
|
|
}
|
|
}
|