Fix sidenav profile entries

This commit is contained in:
Patrick Jentsch 2023-11-13 12:46:48 +01:00
parent df33c7b36d
commit 660d7ebc99

View File

@ -1,22 +1,15 @@
<ul class="sidenav sidenav-fixed" id="sidenav"> <ul class="sidenav sidenav-fixed" id="sidenav">
<li> <li>
<div class="user-view" style="padding-top: 1px; padding-left: 20px !important; padding-right: 20px !important; height: 112px;"> <div class="user-view">
<div class="background primary-color"></div> <div class="background primary-color"></div>
<div class="row">
<div class="col s5">
<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: 22px;">
</a>
</div>
<div class="col s5" style="word-wrap: break-word; margin-left:-10px;">
<span class="white-text name"> <span class="white-text name">
{% if current_user.username|length > 18 %} {% if current_user.username|length > 32 %}
{{ current_user.username[:15] + '...' }} {{ current_user.username[:29] + '...' }}
{% else %} {% else %}
{{ current_user.username }} {{ current_user.username }}
{% endif %} {% endif %}
</span> </span>
<span class="white-text email" style="padding-top:5px;"> <span class="white-text email">
{% if current_user.email|length > 32 %} {% if current_user.email|length > 32 %}
{{ current_user.email[:29] + '...' }} {{ current_user.email[:29] + '...' }}
{% else %} {% else %}
@ -25,7 +18,6 @@
</span> </span>
</div> </div>
</div> </div>
</div>
</li> </li>
{# <li class="primary-color"> {# <li class="primary-color">
<div style="overflow: hidden;height: 64px; width: 250px;"> <div style="overflow: hidden;height: 64px; width: 250px;">