aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_card_content/user_card_content.vue
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2018-04-03 09:14:42 +0000
committerlambda <pleromagit@rogerbraun.net>2018-04-03 09:14:42 +0000
commite4b2fdf1240571f1a3d4be743d73d2b8207b7ba6 (patch)
tree8d21d76ef7471df36b3e0468e06b3870b280c714 /src/components/user_card_content/user_card_content.vue
parent214dd1f6d14073c26316bf5344f03b4b6af999b2 (diff)
parent0c4dc26808c3bb7508bf9005f3c3430f1c7e2039 (diff)
Merge branch 'stillGifs' into 'develop'
Still gifs See merge request pleroma/pleroma-fe!193
Diffstat (limited to 'src/components/user_card_content/user_card_content.vue')
-rw-r--r--src/components/user_card_content/user_card_content.vue17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/components/user_card_content/user_card_content.vue b/src/components/user_card_content/user_card_content.vue
index ef000c94..71a879df 100644
--- a/src/components/user_card_content/user_card_content.vue
+++ b/src/components/user_card_content/user_card_content.vue
@@ -7,7 +7,7 @@
</router-link>
<div class='container'>
<router-link :to="{ name: 'user-profile', params: { id: user.id } }">
- <img :src="user.profile_image_url_original">
+ <StillImage class="avatar" :src="user.profile_image_url_original"/>
</router-link>
<span class="glyphicon glyphicon-user"></span>
<div class="name-and-screen-name">
@@ -135,13 +135,26 @@
overflow: hidden;
}
- img {
+ .avatar {
border-radius: 5px;
flex: 1 0 100%;
width: 56px;
height: 56px;
box-shadow: 0px 1px 8px rgba(0,0,0,0.75);
object-fit: cover;
+
+ &.animated::before {
+ display: none;
+ }
+ }
+
+ &:hover .animated.avatar {
+ canvas {
+ display: none;
+ }
+ img {
+ visibility: visible;
+ }
}
text-shadow: 0px 1px 1.5px rgba(0, 0, 0, 1.0);