Skip to content

Commit

Permalink
[css] Hide the app element when all its models filtered-out (hidden) …
Browse files Browse the repository at this point in the history
…by quick-search.
  • Loading branch information
fabiocaccamo committed Oct 22, 2024
1 parent c352fce commit 6cbe682
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions admin_interface/static/admin_interface/css/nav-sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,12 @@
max-width: calc(100% - 360px);
}
}

/* Hide the app element when all its models filtered-out (hidden) by quick-search. */
.admin-interface #nav-sidebar .module[class^="app-"]:has([class^="model-"][style="display: none;"]) {
display: none;
}

.admin-interface #nav-sidebar .module[class^="app-"]:has([class^="model-"]:not([style="display: none;"])) {
display: block !important;
}

0 comments on commit 6cbe682

Please sign in to comment.