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:
Robert Sparks 2022-10-12 13:25:47 -05:00 committed by GitHub
parent 08dfb82fa4
commit c1556a3bc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 15 deletions

View file

@ -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
#righthand-panel {
max-height: 80vh;

View file

@ -5,18 +5,12 @@
<li class="nav-item dropdown">
{% if flavor == "top" %}
<a href="#"
class="nav-link dropdown-toggle{% if user.person.photo_thumb %} p-0{% endif %}"
class="nav-link dropdown-toggle"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false">
{% if user.is_authenticated %}
{% if user.person.photo_thumb %}
<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 %}
{{ user.username|split:'@'|first }}
{% else %}
User
{% endif %}