Skip to content

Commit

Permalink
Merge pull request #1924 from MTES-MCT/hotfix/1923-header-footer-mobile
Browse files Browse the repository at this point in the history
[Front] Réactivation du header et footer sur version mobile
  • Loading branch information
sfinx13 authored Nov 13, 2023
2 parents 4b90f17 + 45787bc commit 96fc3e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,11 @@ export default defineComponent({
</script>

<style>
.fr-header, .fr-footer {
.remove-mobile-header-footer .fr-header, .remove-mobile-header-footer .fr-footer {
display: none;
}
@media (min-width: 48em) {
.fr-header, .fr-footer {
.remove-mobile-header-footer .fr-header, .remove-mobile-header-footer .fr-footer {
display: inherit;
}
}
Expand Down
2 changes: 1 addition & 1 deletion templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
2:'REFUSEE',
3:'CLOTUREE',
} %}
<body>
<body {% if bodyClass is defined %}class="{{ bodyClass }}"{% endif %}>
{% if 'back_' not in app.request.get('_route') %}
{% include "header.html.twig" %}
{% for label, messages in app.flashes %}
Expand Down
1 change: 1 addition & 0 deletions templates/front/nouveau_formulaire.html.twig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% set bodyClass = 'remove-mobile-header-footer' %}
{% extends 'base.html.twig' %}

{% block title %}Déposez votre signalement{% endblock %}
Expand Down

0 comments on commit 96fc3e2

Please sign in to comment.