Fix body class to show the filters without JavaScript

This class must match the one set by the “Filter” button so that when
there is no JavaScript filters forms are always visible.
This commit is contained in:
jordi fita mas 2023-07-14 10:25:39 +02:00
parent a7c1df20f0
commit ae1e294144
2 changed files with 2 additions and 2 deletions

View File

@ -712,7 +712,7 @@ htmx.on('closeModal', () => {
});
htmx.on(document, 'alpine:init', () => {
document.body.classList.remove('show-filters');
document.body.classList.remove('filters-visible');
Alpine.data('snackbar', () => ({
show: false, toast: "", toasts: [], timeoutId: null, init() {

View File

@ -9,7 +9,7 @@
<script type="module" src="/static/numerus.js"></script>
<script defer src="/static/alpinejs@3.12.0.min.js"></script>
</head>
<body class="show-filters">
<body class="filters-visible">
<header>
<h1><img src="/static/numerus.svg" alt="Numerus" width="261" height="33"></h1>
<details id="profile-menu" class="menu">