fix: revert photo-on-menubar enhancement (#4564)
* fix: revert photo-on-menubar enhancement * fix: revert styling added for menubar photo.
This commit is contained in:
parent
08dfb82fa4
commit
c1556a3bc5
|
@ -227,13 +227,6 @@ th {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Style the navbar user photo
|
|
||||||
.nav-link .user-photo {
|
|
||||||
object-fit: cover;
|
|
||||||
height: 40px;
|
|
||||||
width: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Style the righthand navigation panel
|
// Style the righthand navigation panel
|
||||||
#righthand-panel {
|
#righthand-panel {
|
||||||
max-height: 80vh;
|
max-height: 80vh;
|
||||||
|
|
|
@ -5,18 +5,12 @@
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
{% if flavor == "top" %}
|
{% if flavor == "top" %}
|
||||||
<a href="#"
|
<a href="#"
|
||||||
class="nav-link dropdown-toggle{% if user.person.photo_thumb %} p-0{% endif %}"
|
class="nav-link dropdown-toggle"
|
||||||
role="button"
|
role="button"
|
||||||
data-bs-toggle="dropdown"
|
data-bs-toggle="dropdown"
|
||||||
aria-expanded="false">
|
aria-expanded="false">
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
{% if user.person.photo_thumb %}
|
{{ user.username|split:'@'|first }}
|
||||||
<img class="user-photo rounded-circle ms-1" width="40" height="40"
|
|
||||||
src="{{ user.person.photo_thumb.url }}"
|
|
||||||
alt="Photo of {{ user.person.name }}">
|
|
||||||
{% else %}
|
|
||||||
{{ user.username|split:'@'|first }}
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
{% else %}
|
||||||
User
|
User
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue