GNOME Bugzilla – Bug 690673
Avatar image is not scaled
Last modified: 2013-11-15 19:09:54 UTC
Created attachment 232151 [details] How it looks like After setting avatar in control-center and messing with rights to ~/.face, login screen shows my avatar in the user list. However instead of scaling it to fit the box, it displays just a fragment of it. This is how my avatar should look like (128x128px): http://raven.fedorapeople.org/avatar.png In the attachment there is a photo of login screen with the avatar clipped.
I can confirm that this happens.
*** Bug 701023 has been marked as a duplicate of this bug. ***
Interestingly, after selecting a user the avatar is properly scaled.
I suggested a fairly easy fix, adding the line "background-size: contain;" to the declaration for .login-dialog-user-list-item-icon but it seems they might not want to do it that way... I can confirm, however, that it will scale the user icon to fit the box provided, rather than cropping it as it currently does when the icon is larger than 64*64 pixels.
Created attachment 257968 [details] [review] patch actually, 'login-dialog-not-listed-button' style overwrite the default one in Avatar, so no more background-size: contain style With this patch, every image is scaled
Review of attachment 257968 [details] [review]: In all other cases (polkit, end session dialog) we just add "background-size: contain" to the specific styling, so we can do the same here.
Created attachment 258211 [details] [review] scale correcty avatar image in loginDialog you're right. I probably forget to update the .css in my gnome-shell distro and came into the foolish idea that changing style property completly overwrite the styleclass
Which commit fixed this issue?
https://git.gnome.org/browse/gnome-shell/commit/?id=04a00f65649f36b687d0368da72ba2f46229b140
Thanks!