Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/defer avatar #856

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions vue-client/src/components/shared/user-avatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,18 @@ export default {
class="UserAvatar"
:class="[this.appearance]"
:style="{ width: `${size}px`, height: `${size}px` }">
<!--
<img
v-if="hasAvatar"
class="UserAvatar-gravatar"
class="UserAvatar-img"
alt="Avatar"
:style="{ width: `${size}px`, height: `${size}px` }"
:src="`https://www.gravatar.com/avatar/${user.emailHash}?d=404&s=${size*2}`"
:src=""
niklasl marked this conversation as resolved.
Show resolved Hide resolved
@error="hasAvatar = false" />
-->
<span
v-if="!hasAvatar"
class="UserAvatar-no-gravatar"
class="UserAvatar-no-img"
:class="{'highlight': this.highlight}"
:style="{ fontSize: `${fontSize}pt` }">
{{ initials }}
Expand All @@ -89,7 +91,7 @@ export default {
border-color: @grey-dark;
}

&-no-gravatar {
&-no-img {
height: 100%;
width: 100%;
font-weight: 600;
Expand Down
1 change: 0 additions & 1 deletion vue-client/src/components/usersettings/user-settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export default {
<div class="UserInfo-meta">
<p>Din användarprofil är hämtad från <a href="https://login.libris.kb.se">Libris Login</a>.
<br>Vid frågor om rättigheter för sigel kontakta <a href="mailto:[email protected]">[email protected]</a>.
<br>Profilbild sätts via <a href="https://www.gravatar.com">gravatar</a>.
</p>
</div>
</div>
Expand Down