From 2aabd8ed1a75be0d4079d23d0bf6702883ff4959 Mon Sep 17 00:00:00 2001 From: lain Date: Fri, 5 Jun 2020 17:55:19 +0200 Subject: StillImage: Make it work properly in both firefox and chrome. --- src/components/still-image/still-image.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/components/still-image/still-image.vue') diff --git a/src/components/still-image/still-image.vue b/src/components/still-image/still-image.vue index 4137bd59..08af26f6 100644 --- a/src/components/still-image/still-image.vue +++ b/src/components/still-image/still-image.vue @@ -23,12 +23,21 @@ -- cgit v1.2.3-70-g09d2 From 815f230ac7ace5a1507afae91bafa57589a77522 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 18 Aug 2020 23:57:42 +0300 Subject: 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(-) (limited to 'src/components/still-image/still-image.vue') diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index be7377e9..63e0ceba 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 75db5db1..07fce79a 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 { -- cgit v1.2.3-70-g09d2