1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

CSS: Hide menu on mobile

This commit is contained in:
Jakub Vrana
2025-03-29 11:11:57 +01:00
parent 6cf3d5d2b8
commit 79fbf9c58a
6 changed files with 24 additions and 7 deletions

View File

@@ -849,3 +849,9 @@ oninput = event => {
const maxLength = target.getAttribute('data-maxlength');
alterClass(target, 'maxlength', target.value && maxLength != null && target.value.length > maxLength); // maxLength could be 0
};
addEvent(document, 'click', event => {
if (!qs('#foot').contains(event.target)) {
alterClass(qs('#foot'), 'foot', true);
}
});