From 815f230ac7ace5a1507afae91bafa57589a77522 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 18 Aug 2020 23:57:42 +0300 Subject: [PATCH] fixed some issues related to user avatar --- src/components/attachment/attachment.vue | 8 ++++++-- src/components/chat_list_item/chat_list_item.scss | 2 +- src/components/chat_title/chat_title.vue | 2 +- src/components/status/status.scss | 2 +- src/components/still-image/still-image.vue | 3 +-- src/components/user_avatar/user_avatar.vue | 6 ++++-- src/components/user_card/user_card.vue | 10 +++------- 7 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index be7377e955..63e0cebad2 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -60,6 +60,7 @@ @click="openModal" > @import '../../_variables.scss'; -.avatar.still-image { +.Avatar { + --still-image-label-visibility: hidden; + width: 48px; height: 48px; box-shadow: var(--avatarStatusShadow); diff --git a/src/components/user_card/user_card.vue b/src/components/user_card/user_card.vue index 75db5db17b..07fce79acb 100644 --- a/src/components/user_card/user_card.vue +++ b/src/components/user_card/user_card.vue @@ -364,13 +364,9 @@ } } - &:hover .animated.avatar { - canvas { - display: none; - } - img { - visibility: visible; - } + &:hover .avatar { + --still-image-img: visible; + --still-image-canvas: hidden; } &-avatar-link {