-
Notifications
You must be signed in to change notification settings - Fork 95
Closed
Labels
0. to triagebugSomething isn't workingSomething isn't workingfeature: avatarRelated to the avatar componentRelated to the avatar component
Description
Here are some research results:
- Avatar comes as image from server. Its color is defined by method
avatarUrlGenerator()inNcAvatar.vue
Related PR: https://github.com/nextcloud/nextcloud-vue/pull/3119/files - method
avatarUrlGenerator()is called with methodloadAvatarUrl(), which is called inmountedhook, but returns different result from the second attempt - parameter
--background-invert-if-dark: invert(100%)is defined by app theme (dark.css) and remains the same in process
So the conclusion is, result of window.getComputedStyle() call is inconsistent due to different browsers and security reasons
Changing the attribute from this.$el to document.body in this place works, because body and its style aren't changing, unlike the unmounted and mounted again avatar.
Originally posted by @Antreesy in nextcloud/spreed#8625 (comment)
Metadata
Metadata
Assignees
Labels
0. to triagebugSomething isn't workingSomething isn't workingfeature: avatarRelated to the avatar componentRelated to the avatar component