Skip to content

Commit

Permalink
Fix fix content shift on sonata_page_content_header for the navbar is…
Browse files Browse the repository at this point in the history
… fixed on top
  • Loading branch information
mathieu-ducrot committed Jun 24, 2024
1 parent 5d88325 commit b2b6034
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
10 changes: 10 additions & 0 deletions assets/styles/_skin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
padding-top: 79px;
}
}
.content-header:has(.content-header-under-banner) {
margin-top: 29px;
}
.content-header-under-banner {
.sticky-wrapper {
.navbar.navbar-default.stuck {
margin-top: 29px;
}
}
}
.main-sidebar {
hr {
margin-bottom: 0;
Expand Down
7 changes: 5 additions & 2 deletions templates/standard_layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@
{% block sonata_page_content_header %}
{# MDT fix content shift due to env_banner #}
{% if display_smart_env_banner %}
<div style="height: 29px;"></div>
<div class="content-header-under-banner">
{{ parent() }}
</div>
{% else %}
{{ parent() }}
{% endif %}
{{ parent() }}
{% endblock %}

{% block side_bar_before_nav %}
Expand Down

0 comments on commit b2b6034

Please sign in to comment.