tweak avatar style

This commit is contained in:
Pig Fang 2020-07-09 22:15:09 +08:00
parent 58a4d6bea0
commit 2d1bac84e0
No known key found for this signature in database
GPG Key ID: A8198F548DADA9E2
3 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,6 @@
.bs-avatar {
width: 2.1rem;
height: 2.1rem;
margin-top: -8px;
image-rendering: pixelated;
border-radius: 2px;
filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.3));

View File

@ -1,6 +1,6 @@
<li class="nav-item dropdown user-menu">
<a href="#" class="nav-link" data-toggle="dropdown">
<img src="{{ avatar }}" class="bs-avatar mr-1" alt="User Image">
<a href="#" class="nav-link d-flex align-items-center" data-toggle="dropdown">
<img src="{{ avatar }}" class="bs-avatar mr-2" alt="User Image">
<span class="d-none d-md-inline d-sm-block" data-mark="nickname">
{{ user.nickname ?? user.email }}
</span>

View File

@ -1,7 +1,7 @@
<div class="user-panel mt-3 mb-3 {{ badges|length > 0 ? 'pb-2' }}">
<div class="d-flex">
<div class="image">
<img src="{{ avatar }}" class="img-circle elevation-2" alt="User Image">
<img src="{{ avatar }}" class="bs-avatar" alt="User Image">
</div>
<div class="info">
<a class="d-block" data-mark="nickname">{{ user.nickname ?? user.email }}</a>