Fix: mobile help TOC toggle via inline onclick, overflow/wrapping fixes
This commit is contained in:
+3
-3
@@ -762,7 +762,7 @@
|
|||||||
<div class="editor-modal" id="help-modal">
|
<div class="editor-modal" id="help-modal">
|
||||||
<div class="editor-container help-container">
|
<div class="editor-container help-container">
|
||||||
<div class="editor-header">
|
<div class="editor-header">
|
||||||
<button class="help-hamburger" id="help-hamburger" title="Sommaire" aria-label="Afficher le sommaire">
|
<button class="help-hamburger" id="help-hamburger" title="Sommaire" aria-label="Afficher le sommaire" onclick="var n=document.getElementById('help-nav');var o=document.getElementById('help-nav-overlay');if(n){n.classList.toggle('open');if(o)o.classList.toggle('visible');var s=document.getElementById('help-nav-search');if(n.classList.contains('open')&&s)setTimeout(function(){s.focus()},150);document.body.style.overflow=n.classList.contains('open')?'hidden':''}">
|
||||||
<i data-lucide="menu" style="width:18px;height:18px"></i>
|
<i data-lucide="menu" style="width:18px;height:18px"></i>
|
||||||
</button>
|
</button>
|
||||||
<div class="editor-title" id="help-title">Guide d'utilisation ObsiGate</div>
|
<div class="editor-title" id="help-title">Guide d'utilisation ObsiGate</div>
|
||||||
@@ -772,12 +772,12 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="help-nav-overlay" id="help-nav-overlay"></div>
|
<div class="help-nav-overlay" id="help-nav-overlay" onclick="var n=document.getElementById('help-nav');var o=document.getElementById('help-nav-overlay');if(n)n.classList.remove('open');if(o)o.classList.remove('visible');document.body.style.overflow=''"></div>
|
||||||
<div class="editor-body help-body" id="help-body">
|
<div class="editor-body help-body" id="help-body">
|
||||||
<nav class="help-nav" id="help-nav">
|
<nav class="help-nav" id="help-nav">
|
||||||
<div class="help-nav-header">
|
<div class="help-nav-header">
|
||||||
<div class="help-nav-title">Sommaire</div>
|
<div class="help-nav-title">Sommaire</div>
|
||||||
<button class="help-nav-close" id="help-nav-close" title="Fermer" aria-label="Fermer le sommaire">
|
<button class="help-nav-close" id="help-nav-close" title="Fermer" aria-label="Fermer le sommaire" onclick="var n=document.getElementById('help-nav');var o=document.getElementById('help-nav-overlay');if(n)n.classList.remove('open');if(o)o.classList.remove('visible');document.body.style.overflow=''">
|
||||||
<i data-lucide="x" style="width:16px;height:16px"></i>
|
<i data-lucide="x" style="width:16px;height:16px"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -199,11 +199,6 @@ function initHelpModal() {
|
|||||||
initHelpNavigation();
|
initHelpNavigation();
|
||||||
helpNavInitialized = true;
|
helpNavInitialized = true;
|
||||||
}
|
}
|
||||||
// Focus search on open
|
|
||||||
const searchInput = document.getElementById("help-nav-search");
|
|
||||||
if (searchInput) {
|
|
||||||
setTimeout(() => searchInput.focus(), 100);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
closeBtn.addEventListener("click", closeHelpModal);
|
closeBtn.addEventListener("click", closeHelpModal);
|
||||||
|
|||||||
+22
-1
@@ -2369,6 +2369,14 @@ select {
|
|||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
line-height: 1.7;
|
line-height: 1.7;
|
||||||
}
|
}
|
||||||
|
.help-content pre,
|
||||||
|
.help-content table {
|
||||||
|
max-width: 100%;
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
|
.help-content pre code {
|
||||||
|
white-space: pre;
|
||||||
|
}
|
||||||
.help-content ul,
|
.help-content ul,
|
||||||
.help-content ol {
|
.help-content ol {
|
||||||
margin: 10px 0 18px;
|
margin: 10px 0 18px;
|
||||||
@@ -6473,21 +6481,34 @@ body.popup-mode .content-area {
|
|||||||
.help-body {
|
.help-body {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
.help-content {
|
.help-content {
|
||||||
padding: 14px 16px 40px;
|
padding: 14px 16px 40px;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
.help-content pre, .help-content code, .help-content table {
|
||||||
|
max-width: 100%;
|
||||||
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
.help-content:focus { outline: none; }
|
.help-content:focus { outline: none; }
|
||||||
.help-hero {
|
.help-hero {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
.help-hero-copy { min-width: 0; }
|
||||||
|
.help-badges {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 6px;
|
||||||
}
|
}
|
||||||
.help-hero-visual { display: none; }
|
.help-hero-visual { display: none; }
|
||||||
.help-section { padding: 20px 0 16px; }
|
.help-section { padding: 20px 0 16px; min-width: 0; }
|
||||||
.help-nav-link {
|
.help-nav-link {
|
||||||
padding: 10px 12px;
|
padding: 10px 12px;
|
||||||
font-size: 0.88rem;
|
font-size: 0.88rem;
|
||||||
|
|||||||
Reference in New Issue
Block a user