version 1.0.10 mit bugfixes menu schliest sich aber nur auf test umgebung und login abgeschnitten weg
This commit is contained in:
@ -272,9 +272,9 @@ body {
|
||||
position: fixed;
|
||||
top: 80px; /* Abstand von oben (über der Navbar + Burger) */
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: 70%;
|
||||
max-width: 280px;
|
||||
height: calc(100vh - 80px); /* Höhe an das neue top anpassen */
|
||||
background-color: #b1b0b0;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
|
||||
@ -0,0 +1,31 @@
|
||||
{
|
||||
(function () {
|
||||
function initMobileNavClose() {
|
||||
var toggle = document.getElementById("nav-toggle");
|
||||
if (!toggle) return;
|
||||
|
||||
var elements = document.querySelectorAll(".app-menu a, .app-menu button");
|
||||
elements.forEach(function (el) {
|
||||
el.addEventListener("click", function () {
|
||||
if (window.innerWidth <= 1000) {
|
||||
toggle.checked = false; // Men<65> schlie<69>en
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// Beim ersten Laden
|
||||
document.addEventListener("DOMContentLoaded", initMobileNavClose);
|
||||
|
||||
// Falls Oqtane/Blazor sp<73>ter neu rendert, kannst du das bei Bedarf nochmal aufrufen
|
||||
window.initMobileNavClose = initMobileNavClose;
|
||||
})();
|
||||
"exclude" [
|
||||
"**/bin",
|
||||
"**/bower_components",
|
||||
"**/jspm_packages",
|
||||
"**/node_modules",
|
||||
"**/obj",
|
||||
"**/platforms"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user