Skip to content

Commit

Permalink
Standardize gravatar images
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjaclasher authored and Xyene committed Feb 5, 2023
1 parent 9f4e821 commit 4ab6f89
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 16 deletions.
11 changes: 3 additions & 8 deletions resources/comments.scss
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,6 @@ a {
display: flex;
}

.gravatar {
width: 75px;
max-width: 75px;
}

.gravatar-mobile {
display: none;
}
Expand All @@ -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 {
Expand Down
4 changes: 1 addition & 3 deletions resources/ticket.scss
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,7 @@ div.ticket-title {
width: 130px;
}

.gravatar {
width: 80px;
display: block;
img.user-gravatar {
margin: 0 auto;
}

Expand Down
1 change: 1 addition & 0 deletions resources/users.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ tr:target {
img.user-gravatar {
display: block;
border-radius: 6px;
background-color: white;
}

.user-content {
Expand Down
4 changes: 2 additions & 2 deletions templates/comments/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h2><i style="padding-right: 0.3em" class="fa fa-comments"></i>{{ _('Comments')
</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>
Expand All @@ -52,7 +52,7 @@ <h2><i style="padding-right: 0.3em" class="fa fa-comments"></i>{{ _('Comments')
<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;
Expand Down
2 changes: 1 addition & 1 deletion templates/ticket/message.html
Original file line number Diff line number Diff line change
@@ -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">
Expand Down
2 changes: 1 addition & 1 deletion templates/ticket/ticket.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
2 changes: 1 addition & 1 deletion templates/user/user-base.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 4ab6f89

Please sign in to comment.