Standardize gravatar images

This commit is contained in:
Evan 2023-02-05 15:16:38 -05:00 committed by Tudor Brindus
parent 9f4e82163d
commit 4ab6f89991
7 changed files with 10 additions and 16 deletions

View File

@ -144,11 +144,6 @@ a {
display: flex;
}
.gravatar {
width: 75px;
max-width: 75px;
}
.gravatar-mobile {
display: none;
}
@ -164,9 +159,9 @@ a {
}
@media (max-width: 760px) {
.gravatar {
width: 10px;
max-width: 10px;
img.user-gravatar {
display: inline-block;
border-radius: 2px;
}
.gravatar-mobile {

View File

@ -162,9 +162,7 @@ div.ticket-title {
width: 130px;
}
.gravatar {
width: 80px;
display: block;
img.user-gravatar {
margin: 0 auto;
}

View File

@ -117,6 +117,7 @@ tr:target {
img.user-gravatar {
display: block;
border-radius: 6px;
background-color: white;
}
.user-content {

View File

@ -43,7 +43,7 @@
</div>
{% with author=node.author, user=node.author.user %}
<a href="{{ url('user_page', user.username) }}" class="user gravatar-main">
<img src="{{ gravatar(author, 135) }}" class="gravatar">
<img src="{{ gravatar(author, 75) }}" class="user-gravatar">
</a>
{% endwith %}
</div>
@ -52,7 +52,7 @@
<span>
{% with author=node.author, user=node.author.user %}
<a href="{{ url('user_page', user.username) }}" class="user gravatar-mobile">
<img src="{{ gravatar(author, 135) }}" class="gravatar">
<img src="{{ gravatar(author, 10) }}" class="user-gravatar">
</a>
{% endwith %}
{{ link_user(node.author) }}&nbsp;

View File

@ -1,7 +1,7 @@
<section id="message-{{ message.id }}" class="ticket-message">
<div class="info">
<a href="{{ url('user_page', message.user.user.username) }}" class="user">
<img src="{{ gravatar(message.user, 135) }}" class="gravatar">
<img src="{{ gravatar(message.user, 80) }}" class="user-gravatar">
</a>
</div>
<div class="detail">

View File

@ -165,7 +165,7 @@
<section class="ticket-message new-message">
<div class="info">
<a href="{{ url('user_page', request.user.username) }}" class="user">
<img src="{{ gravatar(request.user, 135) }}" class="gravatar">
<img src="{{ gravatar(request.user, 80) }}" class="user-gravatar">
</a>
</div>
<div class="detail">

View File

@ -11,7 +11,7 @@
{% block body %}
<div class="user-info-page">
<div class="user-sidebar">
<img src="{{ gravatar(user, 135) }}" width="135px" height="135px" class="user-gravatar">
<img src="{{ gravatar(user, 135) }}" class="user-gravatar">
<br>
<div><b>