Sidenav User Field height fix

This commit is contained in:
Inga Kirschnick 2023-06-14 10:28:05 +02:00
parent 21d6072f6f
commit c35b2f8674

View File

@ -1,16 +1,29 @@
<ul class="sidenav sidenav-fixed" id="sidenav"> <ul class="sidenav sidenav-fixed" id="sidenav">
<li> <li>
<div class="user-view" style="padding-top: 3px;"> <div class="user-view" style="padding-top: 1px; padding-left: 20px !important; padding-right: 20px !important; height: 112px;">
<div class="background primary-color"></div> <div class="background primary-color"></div>
<div class="row"> <div class="row">
{# <div class="col s4"> {# <div class="col s5">
<a href="{{ url_for('users.user', user_id=current_user.id) }}"> <a href="{{ url_for('users.user', user_id=current_user.id) }}">
<img src="{{ url_for('users.user_avatar', user_id=current_user.id) }}" alt="user-image" class="circle responsive-img" style="height:80%; margin-top: 13px; margin-left:-15px;"> <img src="{{ url_for('users.user_avatar', user_id=current_user.id) }}" alt="user-image" class="circle responsive-img" style="height:80%; margin-top: 22px;">
</a> </a>
</div> #} </div> #}
<div class="col s12"> {# Change col s12 to col s5 to show user image #}
<span class="white-text name">{{ current_user.username }}</span> <div class="col s12" style="word-wrap: break-word; margin-left:-10px;">
<span class="white-text email">{{ current_user.email }}</span> <span class="white-text name">
{% if current_user.username|length > 18 %}
{{ current_user.username[:15] + '...' }}
{% else %}
{{ current_user.username }}
{% endif %}
</span>
<span class="white-text email" style="padding-top:5px;">
{% if current_user.email|length > 32 %}
{{ current_user.email[:29] + '...' }}
{% else %}
{{ current_user.email }}
{% endif %}
</span>
</div> </div>
</div> </div>
</div> </div>