mise en forme de la zone username dans la barre de navigation (fixes #32780)

This commit is contained in:
afornerot 2021-10-18 14:29:41 +02:00
parent 41915a0547
commit e66f8999ed
2 changed files with 16 additions and 0 deletions

View File

@ -127,6 +127,19 @@ body {
right: 30px; right: 30px;
} }
.navbar-top-links #navbar-nameuser {
position: relative;
top: -8px;
right: inherit;
}
@media (max-width: 991px) {
.navbar-top-links #navbar-nameuser {
display: none;
}
}
@media (max-width: 767px) { @media (max-width: 767px) {
.navbar-default .navbar-header #title { .navbar-default .navbar-header #title {
display: none; display: none;

View File

@ -110,6 +110,9 @@
</div> </div>
<ul class="nav navbar-top-links navbar-right"> <ul class="nav navbar-top-links navbar-right">
{% if app.user %}
<a id="navbar-nameuser" href="{{ path('cadoles_core_user') }}" title="Profil">{{ app.user.firstname }} {{ app.user.lastname }}</a>
{% endif %}
{% if mustread is not defined %} {% if mustread is not defined %}
{{ include('@CadolesCore/Include/menu.html.twig') }} {{ include('@CadolesCore/Include/menu.html.twig') }}
{% endif %} {% endif %}