Skip to content
Snippets Groups Projects
Commit 873fa4c1 authored by Rafael Caferati's avatar Rafael Caferati
Browse files

fixed avatar overflow problem

parent 4bf556f8
No related branches found
No related tags found
No related merge requests found
......@@ -564,10 +564,10 @@ label.required:after {
}
&:after {
.transform(rotate(90deg));
.transition(transform .315s ease-out .3s, background .15s ease-out);
.transition(transform .315s ease-out .2s, background .15s ease-out);
}
&:before {
.transition(transform .315s ease-out .45s, background .15s ease-out);
.transition(transform .315s ease-out .3s, background .15s ease-out);
}
&:hover{
&:before{
......@@ -657,8 +657,10 @@ a.github-fork {
height: 100%;
width: 100%;
overflow: hidden;
img {
height: auto !important;
.avatar-image {
display: block;
background-color: transparent;
background-size: 100% auto;
}
}
......
<template name="avatar">
<div class="avatar {{size}} {{shape}} {{class}}">
<img class="avatar-image" src="{{imageUrl}}" {{dimensions}} alt="avatar" onerror="this.style.display='none';" />
<span class="avatar-initials" style="{{initialsCss}}">{{initialsText}}</span>
</div>
<div class="avatar {{size}} {{shape}} {{class}}">
<img class="avatar-image" src="/images/pixel.png" style="background-image:url({{imageUrl}});" {{dimensions}} alt="avatar" onerror="this.style.display='none';" />
<span class="avatar-initials" style="{{initialsCss}}">{{initialsText}}</span>
</div>
</template>
public/images/pixel.png

2.73 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment